sindresorhus / caller-path
Get the path of the caller module
☆64Updated 3 years ago
Alternatives and similar repositories for caller-path:
Users that are interested in caller-path are comparing it to the libraries listed below
- The Node.js `util.deprecate()` function with browser support☆38Updated 6 years ago
- Tests whether one path is inside another path☆41Updated 4 years ago
- A module which will endeavor to guess your terminal's level of color support.☆24Updated 6 years ago
- Make a promise always fulfill with its actual fulfillment value or rejection reason☆53Updated last year
- A better `Promise.race()`☆46Updated 2 years ago
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Get an array of valid, sorted, and cleaned semver versions from an array of strings☆40Updated 3 years ago
- Lazy number range generator☆82Updated last year
- Import a module like with `require()` but from a given path☆85Updated 2 years ago
- Import a globally installed module☆57Updated last year
- Capitalize every word in string: unicorn cake → Unicorn Cake☆52Updated last year
- Run promise-returning & async functions repeatedly until you end it☆45Updated 3 years ago
- 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 arguments of a function, arrow function, generator function, async function☆52Updated last year
- Get the path of the parent module☆77Updated last year
- Get the diff type of two semver versions: 0.0.1 0.0.2 → patch☆68Updated 3 years ago
- Check if something is a promise☆46Updated 3 years ago
- Create an array with values that are present in the first input array but not additional ones☆38Updated 3 years ago
- Resolve the path of a module like `require.resolve()` but from the current working directory☆68Updated 3 years ago
- Import a module like with `require()` but from the current working directory☆52Updated 2 years ago
- Take a list of glob patterns and return an array of file locations, respecting `.gitignore` and allowing for ignore patterns via `packag…☆40Updated last year
- A list of directories you should ignore by default☆23Updated 2 years ago
- Check if a string matches the name of a Node.js builtin module☆58Updated 8 months ago
- Returns the directory used by NPM for globally installed NPM packages.☆35Updated 6 years ago
- Wait for any promise to be fulfilled☆55Updated 2 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…☆91Updated 2 years ago
- Strip the final newline character from a string/buffer☆36Updated 2 months ago
- Get the directory of globally installed packages and binaries☆75Updated last year
- Node.js releases data☆36Updated last week