sindresorhus / is-npmLinks
Check if your code is running as an npm or yarn script
☆65Updated 3 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:
- 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☆58Updated 2 years ago
- Get metadata on the default editor or a specific editor☆55Updated 3 months ago
- Get the path of the parent module☆79Updated 3 months ago
- Check if argv has a specific flag☆96Updated 4 years ago
- Get your PATH prepended with locally installed binaries☆106Updated last year
- Check if your package was installed globally☆70Updated 2 years ago
- Check if a path is a file, directory, or symlink☆80Updated last year
- Lazy number range generator☆82Updated last year
- Get the diff type of two semver versions: 0.0.1 0.0.2 → patch☆69Updated 3 months ago
- Trim newlines from the start and/or end of a string☆49Updated 2 years ago
- Strip redundant indentation and indent the string☆55Updated 4 years ago
- Check if a string matches the name of a Node.js builtin module☆62Updated 9 months ago
- Get the path of the caller module☆67Updated 4 years ago
- Capitalize every word in string: unicorn cake → Unicorn Cake☆52Updated 2 years ago
- Check if a value is a plain object☆103Updated last year
- Get an array of valid, sorted, and cleaned semver versions from an array of strings☆41Updated 4 years ago
- Turn an object into a string of HTML attributes☆50Updated 2 years ago
- Import a globally installed module☆58Updated last year
- Indent each line in a string☆114Updated 3 years ago
- Regular expression for matching issue references☆49Updated last year
- Prints the current date and time as a UNIX timestamp or custom format☆48Updated 4 years ago
- Get the first path that exists on disk of multiple paths☆62Updated 3 months ago
- Ensures a value is a valid error by making it one if not☆84Updated 3 months ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Updated 3 years ago
- Strip the final newline character from a string/buffer☆38Updated last year
- Conditional promise chains☆63Updated 4 years ago
- Make a function mimic another one☆97Updated last year
- Check if a URL is absolute☆80Updated 3 months ago