sindresorhus / capture-stack-trace
Ponyfill for Error#captureStackTrace
☆61Updated 2 years ago
Alternatives and similar repositories for capture-stack-trace:
Users that are interested in capture-stack-trace are comparing it to the libraries listed below
- Detect the dominant newline character of a string☆55Updated last year
- Check if a string matches the name of a Node.js builtin module☆59Updated last month
- 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…☆92Updated 2 years ago
- Check if your package was installed globally☆70Updated last year
- Check if a path is a file, directory, or symlink☆78Updated 8 months ago
- Nested/recursive `.gitignore`/`.npmignore` parsing and filtering.☆62Updated 2 weeks ago
- Get the path of the caller module☆64Updated 3 years ago
- Regular expression for matching reserved filename characters☆50Updated 2 years ago
- Check if your code is running as an npm or yarn script☆64Updated 3 years ago
- Get the first path that exists on disk of multiple paths☆58Updated 2 years ago
- Detect whether the terminal supports Unicode☆85Updated 7 months ago
- Check if a value is a plain object☆102Updated 11 months ago
- Break out of a promise chain☆23Updated 4 years ago
- Exit the process when the `esc` key is pressed☆56Updated last year
- Easily handle defaults for your options☆74Updated last year
- Make a function mimic another one☆94Updated 5 months ago
- Filter object keys and values into a new object☆101Updated 10 months ago
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Tests whether one path is inside another path☆41Updated 5 years ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Updated 3 years ago
- A better `Promise.race()`☆46Updated 2 years ago
- A static list of the Node.js builtin modules from the latest Node.js version☆121Updated last month
- Check if argv has a specific flag☆95Updated 3 years ago
- Write a package.json file☆88Updated 8 months ago
- Start a promise chain☆58Updated 3 years ago
- Stringify an object sorting scalars before objects, and defaulting to 2-space indent☆25Updated 2 years ago
- Import a module like with `require()` but from the current working directory☆52Updated 2 years ago
- Get the directory of globally installed packages and binaries☆75Updated last year
- Resolve the path of a module like `require.resolve()` but from the current working directory☆68Updated 4 years ago
- Gracefully restore the CLI cursor on exit☆38Updated 8 months ago