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:
- Get the directory of globally installed packages and binaries☆76Updated last year
- Lazy number range generator☆81Updated last year
- Get the path of the caller module☆64Updated 3 years ago
- Import a module like with `require()` but from a given path☆85Updated 2 years ago
- Exit the process when the `esc` key is pressed☆56Updated last year
- Import a globally installed module☆58Updated last year
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Get metadata on the default editor or a specific editor☆53Updated last year
- Check if your package was installed globally☆70Updated last year
- Node.js releases data☆36Updated last week
- Get the path of the parent module☆77Updated last year
- A better `Promise.race()`☆46Updated 2 years ago
- Add `module.exports` for Babel and TypeScript compiled code☆35Updated last year
- Strip the final newline character from a string/buffer☆36Updated 7 months ago
- Check if a path is a file, directory, or symlink☆78Updated 10 months ago
- Check if argv has a specific flag☆95Updated 3 years ago
- Prints the current date and time as a UNIX timestamp or custom format☆47Updated 3 years ago
- Get the diff type of two semver versions: 0.0.1 0.0.2 → patch☆68Updated 4 years ago
- Capitalize every word in string: unicorn cake → Unicorn Cake☆52Updated last year
- 🔇 mock stdio output for tests☆23Updated 7 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…☆93Updated 2 years ago
- Get namespaced config from the closest package.json☆121Updated last year
- Ensures a value is a valid error by making it one if not☆77Updated 3 years ago
- Tests whether one path is inside another path☆41Updated 5 years ago
- Make a function mimic another one☆94Updated 7 months ago
- Check if a string is a URL☆85Updated last year
- Conditional promise chains☆60Updated 4 years ago
- Stylelint shareable config for XO☆41Updated 2 weeks ago
- Get the real path of the system temp directory☆83Updated 2 years ago
- Simple wildcard matching☆34Updated 3 years ago