sindresorhus / is-npmLinks
Check if your code is running as an npm or yarn script
☆65Updated 4 months 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☆71Updated 2 years ago
- Exit the process when the `esc` key is pressed☆58Updated 2 years ago
- Import a module like with `require()` but from a given path☆85Updated 3 years ago
- Check if a path is a file, directory, or symlink☆80Updated last year
- Get the directory of globally installed packages and binaries☆77Updated 2 years ago
- Get your PATH prepended with locally installed binaries☆106Updated last year
- Lazy number range generator☆83Updated 2 years ago
- Get metadata on the default editor or a specific editor☆55Updated 4 months ago
- Get the diff type of two semver versions: 0.0.1 0.0.2 → patch☆69Updated 3 months ago
- Get the path of the caller module☆67Updated 4 years ago
- Strip the final newline character from a string/buffer☆38Updated last year
- Get the path of the parent module☆79Updated 3 months ago
- Check if a string matches the name of a Node.js builtin module☆62Updated 10 months ago
- Conditional promise chains☆63Updated 4 years ago
- Add `module.exports` for Babel and TypeScript compiled code☆36Updated last year
- Prints the current date and time as a UNIX timestamp or custom format☆48Updated 4 years ago
- Returns the directory used by NPM for globally installed NPM packages.☆35Updated 7 years ago
- Check if a URL is absolute☆80Updated 3 months ago
- Make a function mimic another one☆97Updated last year
- Import a globally installed module☆59Updated 2 years ago
- Strip redundant indentation and indent the string☆55Updated 4 years ago
- Get the user's default shell☆41Updated 3 months ago
- Check if argv has a specific flag☆96Updated 4 years ago
- Get an array of valid, sorted, and cleaned semver versions from an array of strings☆41Updated 4 years ago
- Check if something is a promise☆46Updated 4 years ago
- Create an array with values that are present in the first input array but not additional ones☆41Updated 4 years ago
- Detect the dominant newline character of a string☆56Updated 2 years ago
- Get the first path that exists on disk of multiple paths☆62Updated 3 months ago
- Ensures a value is a valid error by making it one if not☆84Updated 3 months ago
- Capitalize every word in string: unicorn cake → Unicorn Cake☆52Updated 2 years ago