sindresorhus / is-npmLinks
Check if your code is running as an npm or yarn script
☆64Updated 3 years ago
Alternatives and similar repositories for is-npm
Users that are interested in is-npm are comparing it to the libraries listed below
Sorting:
- Check if your package was installed globally☆70Updated last year
- Import a module like with `require()` but from a given path☆85Updated 3 years ago
- Get the path of the caller module☆64Updated 3 years ago
- Get metadata on the default editor or a specific editor☆53Updated 2 years ago
- Check if a string matches the name of a Node.js builtin module☆59Updated 4 months ago
- Add `module.exports` for Babel and TypeScript compiled code☆35Updated last year
- Import a globally installed module☆58Updated last year
- Exit the process when the `esc` key is pressed☆56Updated last year
- Lazy number range generator☆81Updated last year
- Check if a URL is absolute☆79Updated 3 years ago
- Get the diff type of two semver versions: 0.0.1 0.0.2 → patch☆69Updated 4 years ago
- Get the directory of globally installed packages and binaries☆76Updated last year
- Get the path of the parent module☆77Updated last year
- Check if argv has a specific flag☆95Updated 3 years ago
- Get an array of valid, sorted, and cleaned semver versions from an array of strings☆40Updated 4 years ago
- Capitalize every word in string: unicorn cake → Unicorn Cake☆52Updated last year
- Prints the current date and time as a UNIX timestamp or custom format☆47Updated 3 years ago
- Returns the directory used by NPM for globally installed NPM packages.☆35Updated 6 years ago
- Strip the final newline character from a string/buffer☆36Updated 8 months ago
- Get your PATH prepended with locally installed binaries☆105Updated 8 months ago
- Detect the dominant newline character of a string☆55Updated last year
- Check if a value is a plain object☆102Updated last year
- Get the first path that exists on disk of multiple paths☆59Updated 2 years ago
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Check if a path is a file, directory, or symlink☆78Updated 11 months ago
- Trim newlines from the start and/or end of a string☆48Updated 2 years ago
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆45Updated last year
- Conditional promise chains☆61Updated 4 years ago
- Create an array with values that are present in the first input array but not additional ones☆38Updated 3 years ago
- Make a promise always fulfill with its actual fulfillment value or rejection reason☆53Updated 2 years ago