sindresorhus / is-npm
Check if your code is running as an npm or yarn script
☆64Updated 3 years ago
Related projects ⓘ
Alternatives and complementary repositories for is-npm
- Lazy number range generator☆82Updated 10 months ago
- Check if your package was installed globally☆70Updated last year
- Check if argv has a specific flag☆94Updated 3 years ago
- 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☆67Updated 3 years ago
- Get the directory of globally installed packages and binaries☆75Updated last year
- Capitalize every word in string: unicorn cake → Unicorn Cake☆52Updated last year
- Get metadata on the default editor or a specific editor☆53Updated last year
- Import a module like with `require()` but from a given path☆86Updated 2 years ago
- Import a globally installed module☆57Updated 10 months ago
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Get the path of the parent module☆77Updated last year
- Ensures a value is a valid error by making it one if not☆78Updated 2 years ago
- Get PID from a port☆80Updated 3 years ago
- A better `Promise.race()`☆46Updated last year
- Check if a path is a file, directory, or symlink☆75Updated 3 months ago
- Turn an object into a string of HTML attributes☆49Updated last year
- An implementation of window.fetch in Node.js using Minipass streams☆54Updated last month
- Add `module.exports` for Babel and TypeScript compiled code☆35Updated 6 months ago
- Get namespaced config from the closest package.json☆120Updated last year
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆62Updated 3 years ago
- Strip the final newline character from a string/buffer☆35Updated 3 weeks ago
- Prints the current date and time as a UNIX timestamp or custom format☆46Updated 3 years ago
- Make a function mimic another one☆91Updated 3 weeks ago
- Exit the process when the `esc` key is pressed☆57Updated 11 months ago
- Detect the dominant newline character of a string☆55Updated last year
- Get an array of valid, sorted, and cleaned semver versions from an array of strings☆40Updated 3 years ago
- Extract the actual stack of an error☆67Updated 2 years ago
- Stylelint shareable config for XO☆42Updated 5 months ago
- Conditional promise chains☆60Updated 3 years ago