sindresorhus / is-npmLinks
Check if your code is running as an npm or yarn script
☆64Updated last month
Alternatives and similar repositories for is-npm
Users that are interested in is-npm are comparing it to the libraries listed below
Sorting:
- Get the directory of globally installed packages and binaries☆76Updated last year
- Import a module like with `require()` but from a given path☆85Updated 3 years ago
- Get metadata on the default editor or a specific editor☆53Updated last month
- Lazy number range generator☆82Updated last year
- Check if your package was installed globally☆69Updated last year
- Get your PATH prepended with locally installed binaries☆104Updated 11 months ago
- Check if a path is a file, directory, or symlink☆79Updated last year
- Get the path of the parent module☆78Updated last month
- Add XO to your project☆46Updated last year
- Exit the process when the `esc` key is pressed☆57Updated last year
- Get the diff type of two semver versions: 0.0.1 0.0.2 → patch☆69Updated last month
- Get the path of the caller module☆66Updated 4 years ago
- Prints the current date and time as a UNIX timestamp or custom format☆47Updated 4 years ago
- Check if a string matches the name of a Node.js builtin module☆61Updated 7 months ago
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Ensures a value is a valid error by making it one if not☆79Updated last month
- Strip the final newline character from a string/buffer☆36Updated 11 months ago
- Trim newlines from the start and/or end of a string☆49Updated 2 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆64Updated last month
- Capitalize every word in string: unicorn cake → Unicorn Cake☆52Updated 2 years ago
- Import a globally installed module☆57Updated last year
- Detect whether a terminal emulator supports hyperlinks☆55Updated 8 months ago
- Check if a URL is absolute☆80Updated last month
- Conditional promise chains☆63Updated 4 years ago
- Get the first path that exists on disk of multiple paths☆60Updated last month
- Make a function mimic another one☆96Updated 11 months ago
- Check if argv has a specific flag☆93Updated 4 years ago
- Filter object keys and values into a new object☆104Updated last year
- Returns the directory used by NPM for globally installed NPM packages.☆35Updated 6 years ago
- Check if a string is a URL☆87Updated 2 years ago