sindresorhus / is-npmLinks
Check if your code is running as an npm or yarn script
☆65Updated 2 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:
- Check if your package was installed globally☆70Updated 2 years ago
- Get the directory of globally installed packages and binaries☆77Updated 2 years ago
- Import a module like with `require()` but from a given path☆85Updated 3 years ago
- Exit the process when the `esc` key is pressed☆57Updated last year
- Check if a path is a file, directory, or symlink☆80Updated last year
- Get metadata on the default editor or a specific editor☆54Updated 2 months ago
- Check if a string matches the name of a Node.js builtin module☆61Updated 9 months ago
- Get the path of the parent module☆79Updated 2 months ago
- Lazy number range generator☆82Updated last year
- Prints the current date and time as a UNIX timestamp or custom format☆48Updated 4 years ago
- Get the diff type of two semver versions: 0.0.1 0.0.2 → patch☆69Updated 2 months ago
- Get your PATH prepended with locally installed binaries☆105Updated last year
- Check if argv has a specific flag☆95Updated 4 years ago
- Get the path of the caller module☆66Updated 4 years ago
- Strip the final newline character from a string/buffer☆37Updated last year
- Get the real path of the system temp directory☆83Updated 3 years ago
- Detect whether a terminal emulator supports hyperlinks☆55Updated 9 months ago
- Import a globally installed module☆58Updated last year
- Returns the directory used by NPM for globally installed NPM packages.☆35Updated 6 years ago
- Make a function mimic another one☆96Updated last year
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆66Updated 2 months ago
- Indent each line in a string☆114Updated 3 years ago
- Add `module.exports` for Babel and TypeScript compiled code☆35Updated last year
- A better `Promise.race()`☆50Updated 2 years ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Updated 3 years ago
- Get an array of valid, sorted, and cleaned semver versions from an array of strings☆41Updated 4 years ago
- Capitalize every word in string: unicorn cake → Unicorn Cake☆52Updated 2 years ago
- Linkify GitHub issue references☆47Updated 2 months ago
- Node.js releases data☆38Updated 2 weeks ago