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:
- Import a module like with `require()` but from a given path☆86Updated 3 years ago
- Get the directory of globally installed packages and binaries☆77Updated 2 years ago
- Check if your package was installed globally☆71Updated 2 years ago
- Get your PATH prepended with locally installed binaries☆107Updated last year
- Get metadata on the default editor or a specific editor☆55Updated 4 months ago
- Get the path of the caller module☆67Updated 4 years ago
- Check if argv has a specific flag☆96Updated 4 years ago
- Get the path of the parent module☆79Updated 4 months ago
- Check if a string matches the name of a Node.js builtin module☆63Updated 11 months ago
- Lazy number range generator☆83Updated 2 years ago
- Strip redundant indentation and indent the string☆55Updated 4 years ago
- Check if a path is a file, directory, or symlink☆80Updated last year
- Strip the final newline character from a string/buffer☆38Updated last year
- Check if a URL is absolute☆80Updated 4 months ago
- Ensures a value is a valid error by making it one if not☆85Updated 4 months ago
- Capitalize every word in string: unicorn cake → Unicorn Cake☆52Updated 2 years ago
- Get the diff type of two semver versions: 0.0.1 0.0.2 → patch☆69Updated 4 months ago
- Get the user's default shell☆41Updated 4 months ago
- Exit the process when the `esc` key is pressed☆58Updated 2 years ago
- Add `module.exports` for Babel and TypeScript compiled code☆36Updated last year
- Get the real path of the system temp directory☆85Updated 3 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆66Updated 4 months ago
- Import a globally installed module☆59Updated 2 years ago
- Conditional promise chains☆63Updated 4 years ago
- Get the first path that exists on disk of multiple paths☆62Updated 4 months ago
- Check if a value is a plain object☆104Updated last year
- Indent each line in a string☆115Updated 3 years ago
- Returns the directory used by NPM for globally installed NPM packages.☆35Updated 7 years ago
- Check if something is a promise☆45Updated 4 years ago
- Make a function mimic another one☆96Updated last year