sindresorhus / is-npmLinks
Check if your code is running as an npm or yarn script
☆65Updated 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:
- Import a module like with `require()` but from a given path☆85Updated 3 years ago
- Get the directory of globally installed packages and binaries☆76Updated last year
- Check if your package was installed globally☆70Updated last year
- Get metadata on the default editor or a specific editor☆53Updated 2 years ago
- Check if a path is a file, directory, or symlink☆78Updated last year
- Lazy number range generator☆81Updated last year
- Exit the process when the `esc` key is pressed☆56Updated last year
- Get your PATH prepended with locally installed binaries☆105Updated 9 months ago
- Check if argv has a specific flag☆93Updated 4 years ago
- Get the diff type of two semver versions: 0.0.1 0.0.2 → patch☆69Updated 4 years ago
- Check if a string matches the name of a Node.js builtin module☆59Updated 5 months ago
- Import a globally installed module☆58Updated last year
- Get the path of the caller module☆65Updated 3 years ago
- Get the path of the parent module☆77Updated last year
- Prints the current date and time as a UNIX timestamp or custom format☆47Updated 4 years ago
- Make a function mimic another one☆95Updated 9 months ago
- Add XO to your project☆47Updated last year
- Add `module.exports` for Babel and TypeScript compiled code☆35Updated last year
- Capitalize every word in string: unicorn cake → Unicorn Cake☆52Updated last year
- Strip the final newline character from a string/buffer☆36Updated 9 months ago
- Check if a string is a URL☆85Updated 2 years ago
- Check if a value is a plain object☆102Updated last year
- Check if a URL is absolute☆79Updated 4 years ago
- Conditional promise chains☆61Updated 4 years ago
- Get the real path of the system temp directory☆81Updated 2 years ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Updated 3 years ago
- Trim newlines from the start and/or end of a string☆48Updated 2 years ago
- Detect whether a terminal emulator supports hyperlinks☆55Updated 6 months ago
- Make directories and their parents if needed - Like `mkdir -p`, but cross-platform☆124Updated last year
- A better `Promise.race()`☆46Updated 2 years ago