Check if your code is running as an npm or yarn script
☆66Sep 18, 2026Updated last week
Alternatives and similar repositories for is-npm
Users that are interested in is-npm are comparing it to the libraries listed below. We may earn a commission when you buy through links labeled 'Ad' on this page.
Sorting:
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 5 years ago
- Check if a number is a redirect HTTP status code☆25Sep 18, 2026Updated last week
- Check if a path is the current working directory☆22Sep 18, 2026Updated last week
- Lowercase the keys of an object☆42Sep 18, 2026Updated last week
- Check if a path is inside another path☆40Sep 18, 2026Updated last week
- Wordpress hosting with auto-scaling - Free Trial Offer • AdFully Managed hosting for WordPress and WooCommerce businesses that need reliable, auto-scalable performance. Cloudways SafeUpdates now available.
- Check if a value is a regular expression☆26Sep 18, 2026Updated last week
- Node's default require extensions as a separate module☆11Sep 18, 2026Updated last week
- Check if a path is in the current working directory☆23Sep 18, 2026Updated last week
- Check if your code is running as an npm script☆54Sep 18, 2021Updated 5 years ago
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 5 years ago
- Get the diff type of two semver versions: 0.0.1 0.0.2 → patch☆69Sep 15, 2025Updated last year
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆66Sep 18, 2026Updated last week
- ES2015 `String#codePointAt()` ponyfill☆23Jan 23, 2021Updated 5 years ago
- Modern version of duplexer2☆17Sep 18, 2026Updated last week
- Deploy to Railway using AI coding agents - Free Credits Offer • AdUse Claude Code, Codex, OpenCode, and more. Autonomous software development now has the infrastructure to match with Railway.
- Get the set npm registry URL☆57Sep 18, 2026Updated last week
- Check if a file path is a binary file☆49Sep 18, 2026Updated last week
- Check if a string is a scoped npm package name☆25Sep 18, 2026Updated last week
- Check whether a binary version satisfies a semver range☆23Sep 18, 2026Updated last week
- Get the visual width of the widest line in a string - the number of columns required to display it☆40Sep 18, 2026Updated last week
- Convert matching single-quotes to double-quotes: `I 'love' unicorns` → `I "love" unicorns`☆24Sep 18, 2026Updated last week
- Get the user home directory with fallback to the system temp directory☆30Sep 18, 2026Updated last week
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆46Sep 18, 2026Updated last week
- Modify the filename in a path☆17Sep 18, 2026Updated last week
- Deploy to Railway using AI coding agents - Free Credits Offer • AdUse Claude Code, Codex, OpenCode, and more. Autonomous software development now has the infrastructure to match with Railway.
- Repeat a string - fast☆35Sep 18, 2026Updated last week
- Check if a string matches the name of a Node.js builtin module☆62Sep 18, 2026Updated last week
- Truncate a semver version: 1.2.3 → 1.2.0☆17Sep 18, 2026Updated last week
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Sep 18, 2026Updated last week
- Convert matching double-quotes to single-quotes: `I "love" unicorns` → `I 'love' unicorns`☆57Sep 18, 2026Updated last week
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆23Sep 18, 2026Updated last week
- Check if a value is an object☆41Sep 18, 2026Updated last week
- Parse/stringify contact info like `Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)`☆38Aug 9, 2021Updated 5 years ago
- Get the first path that exists on disk of multiple paths☆64Sep 18, 2026Updated last week
- Wordpress hosting with auto-scaling - Free Trial Offer • AdFully Managed hosting for WordPress and WooCommerce businesses that need reliable, auto-scalable performance. Cloudways SafeUpdates now available.
- Create an array with values that are present in the first input array but not additional ones☆40Sep 18, 2026Updated last week
- Get the directory of globally installed packages and binaries☆78Sep 18, 2026Updated last week
- ES2015 Number.isNaN() ponyfill☆30May 2, 2024Updated 2 years ago
- Define a non-enumerable property on an object.☆21Mar 14, 2023Updated 3 years ago
- Get the version of a binary in semver format☆43Sep 18, 2026Updated last week
- [DEPRECATED] Node.js os.tmpdir() ponyfill☆36Jan 24, 2021Updated 5 years ago
- Gracefully restore the CLI cursor on exit☆41Sep 18, 2026Updated last week