electerious / nice-try
Tries to execute a function and discards any error that occurs.
☆67Updated 2 years ago
Alternatives and similar repositories for nice-try
Users that are interested in nice-try are comparing it to the libraries listed below
Sorting:
- Check if your code is running as an npm or yarn script☆64Updated 3 years ago
- Detect the dominant newline character of a string☆55Updated last year
- Get the path of the caller module☆64Updated 3 years ago
- Check if your package was installed globally☆70Updated last year
- programmatically publish and unpublish npm packages☆46Updated 3 years ago
- Get a random item from an array☆57Updated 3 years ago
- Get the diff type of two semver versions: 0.0.1 0.0.2 → patch☆68Updated 4 years ago
- Import a globally installed module☆58Updated last year
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆62Updated 3 years ago
- If you use globs, this will make your code faster. Returns `true` if the given string looks like a glob pattern or an extglob pattern. Th…☆93Updated 2 years ago
- Reduce a list of values using promises into a promise for a value☆70Updated 2 years ago
- Strip the final newline character from a string/buffer☆36Updated 6 months ago
- Make a function mimic another one☆94Updated 6 months ago
- Check if a project is using Yarn☆66Updated 3 years ago
- A Map implementation with expirable items☆94Updated 3 years ago
- Ponyfill for Error#captureStackTrace☆61Updated 2 years ago
- Like read-package-json, but faster☆49Updated 2 weeks ago
- Tests whether one path is inside another path☆41Updated 5 years ago
- ☆48Updated 7 years ago
- Filter object keys and values into a new object☆101Updated 11 months ago
- Import a module like with `require()` but from a given path☆85Updated 2 years ago
- Import a module like with `require()` but from the current working directory☆52Updated 2 years ago
- Get the real path of the system temp directory☆83Updated 2 years ago
- Break out of a promise chain☆23Updated 4 years ago
- Check if stdout or stderr is interactive☆116Updated last year
- A better `Promise.race()`☆46Updated 2 years ago
- CSS prefixing helpers in less than 1KB 🌈☆68Updated 4 years ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Updated 3 years ago
- Turn an object into a string of HTML attributes☆49Updated 2 years ago
- Toggle the CLI cursor☆108Updated 9 months ago