sindresorhus / is-npm
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
- Get the directory of globally installed packages and binaries☆75Updated last year
- Import a module like with `require()` but from a given path☆85Updated 2 years ago
- Lazy number range generator☆81Updated last year
- Get metadata on the default editor or a specific editor☆53Updated last year
- Get the path of the caller module☆64Updated 3 years ago
- Get the diff type of two semver versions: 0.0.1 0.0.2 → patch☆68Updated 3 years ago
- Conditional promise chains☆60Updated 4 years ago
- Check if your package was installed globally☆70Updated last year
- Prints the current date and time as a UNIX timestamp or custom format☆46Updated 3 years ago
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Strip the final newline character from a string/buffer☆36Updated 5 months ago
- Capitalize every word in string: unicorn cake → Unicorn Cake☆52Updated last year
- Turn an object into a string of HTML attributes☆49Updated 2 years ago
- Ensures a value is a valid error by making it one if not☆77Updated 3 years ago
- Import a globally installed module☆58Updated last year
- Exit the process when the `esc` key is pressed☆56Updated last year
- Check if a string is a URL☆85Updated last year
- Check if argv has a specific flag☆95Updated 3 years ago
- Stylelint shareable config for XO☆41Updated 10 months ago
- A better `Promise.race()`☆46Updated 2 years ago
- Check if a URL is absolute☆79Updated 3 years ago
- Get an array of valid, sorted, and cleaned semver versions from an array of strings☆40Updated 3 years ago
- Add `module.exports` for Babel and TypeScript compiled code☆35Updated 11 months ago
- Get namespaced config from the closest package.json☆121Updated last year
- Get the first path that exists on disk of multiple paths☆58Updated 2 years ago
- Make a function mimic another one☆94Updated 5 months ago
- Detect the dominant newline character of a string☆55Updated last year
- Node.js releases data☆36Updated 2 weeks ago
- Check if a path is a file, directory, or symlink☆78Updated 8 months ago
- Simplify eslint rules by visiting templates☆20Updated 2 years ago