sindresorhus / is-npmLinks
Check if your code is running as an npm or yarn script
☆64Updated 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:
- Import a module like with `require()` but from a given path☆85Updated 3 years ago
- Check if your package was installed globally☆69Updated 2 years ago
- Lazy number range generator☆82Updated last year
- Get your PATH prepended with locally installed binaries☆104Updated last year
- Check if argv has a specific flag☆94Updated 4 years ago
- Get the path of the parent module☆78Updated last month
- Check if a value is a plain object☆103Updated last year
- Check if a string matches the name of a Node.js builtin module☆61Updated 8 months ago
- Conditional promise chains☆63Updated 4 years ago
- Exit the process when the `esc` key is pressed☆57Updated last year
- Get the directory of globally installed packages and binaries☆76Updated 2 years ago
- Get metadata on the default editor or a specific editor☆53Updated 2 months ago
- Get the diff type of two semver versions: 0.0.1 0.0.2 → patch☆69Updated last month
- Check if a path is a file, directory, or symlink☆79Updated last year
- Strip the final newline character from a string/buffer☆36Updated last year
- Get the path of the caller module☆66Updated 4 years ago
- Import a globally installed module☆57Updated last year
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Ensures a value is a valid error by making it one if not☆82Updated last month
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Updated 3 years ago
- Check if a URL is absolute☆80Updated last month
- Filter object keys and values into a new object☆104Updated last year
- Check if something is a promise☆46Updated 4 years ago
- Get the real path of the system temp directory☆82Updated 3 years ago
- Make a function mimic another one☆96Updated last year
- Reduce a list of values using promises into a promise for a value☆73Updated 2 years ago
- Add XO to your project☆47Updated 2 years ago
- Indent each line in a string☆113Updated 3 years ago
- Returns the directory used by NPM for globally installed NPM packages.☆35Updated 6 years ago
- Get namespaced config from the closest package.json☆120Updated 2 years ago