Check if your code is running as an npm or yarn script
☆66Sep 18, 2026Updated 3 weeks ago
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 path is the current working directory☆22Sep 18, 2026Updated 3 weeks ago
- Check if a number is a redirect HTTP status code☆25Sep 18, 2026Updated 3 weeks ago
- Check if a path is inside another path☆40Sep 18, 2026Updated 3 weeks ago
- Lowercase the keys of an object☆42Sep 18, 2026Updated 3 weeks ago
- Deploy on Railway without the complexity - Free Credits Offer • AdConnect your repo and Railway handles the rest with instant previews. Quickly provision container image services, databases, and storage volumes.
- Check if a path is in the current working directory☆23Sep 18, 2026Updated 3 weeks ago
- Check if a value is a regular expression☆26Sep 18, 2026Updated 3 weeks ago
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 5 years ago
- Node's default require extensions as a separate module☆11Sep 18, 2026Updated 3 weeks ago
- ES2015 `String#codePointAt()` ponyfill☆23Jan 23, 2021Updated 5 years ago
- Check if your code is running as an npm script☆54Sep 18, 2021Updated 5 years ago
- Check whether a binary version satisfies a semver range☆23Sep 18, 2026Updated 3 weeks ago
- Modern version of duplexer2☆17Sep 18, 2026Updated 3 weeks ago
- Get the diff type of two semver versions: 0.0.1 0.0.2 → patch☆69Sep 15, 2025Updated last year
- GPUs on demand by Runpod - Special Offer Available • AdRun AI, ML, and HPC workloads on powerful cloud GPUs—without limits or wasted spend. Deploy GPUs in under a minute and pay by the second.
- Get the visual width of the widest line in a string - the number of columns required to display it☆40Sep 18, 2026Updated 3 weeks ago
- Check if a string is a scoped npm package name☆25Sep 18, 2026Updated 3 weeks ago
- Check if a file path is a binary file☆49Sep 18, 2026Updated 3 weeks ago
- Get the set npm registry URL☆57Sep 18, 2026Updated 3 weeks ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆66Sep 18, 2026Updated 3 weeks ago
- Parse/stringify contact info like `Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)`☆38Aug 9, 2021Updated 5 years ago
- Convert matching single-quotes to double-quotes: `I 'love' unicorns` → `I "love" unicorns`☆24Sep 18, 2026Updated 3 weeks ago
- Get the user home directory with fallback to the system temp directory☆30Sep 18, 2026Updated 3 weeks ago
- Truncate a semver version: 1.2.3 → 1.2.0☆17Sep 18, 2026Updated 3 weeks ago
- 1-Click AI Models by DigitalOcean Gradient • AdDeploy popular AI models on DigitalOcean Gradient GPU virtual machines with just a single click. Zero configuration with optimized deployments.
- Modify the filename in a path☆17Sep 18, 2026Updated 3 weeks ago
- Check if a protocol requires a certain port number to be added to an URL.☆11Jul 14, 2023Updated 3 years ago
- Gracefully restore the CLI cursor on exit☆42Sep 18, 2026Updated 3 weeks ago
- Repeat a string - fast☆35Sep 18, 2026Updated 3 weeks ago
- Modify the values of an object☆28Sep 18, 2026Updated 3 weeks ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Sep 18, 2026Updated 3 weeks ago
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆46Sep 18, 2026Updated 3 weeks ago
- Define a non-enumerable property on an object.☆21Mar 14, 2023Updated 3 years ago
- Check if a string matches the name of a Node.js builtin module☆63Sep 18, 2026Updated 3 weeks ago
- Managed hosting for WordPress and PHP on Cloudways • AdManaged hosting for WordPress, Magento, Laravel, or PHP apps, on multiple cloud providers. Deploy in minutes on Cloudways by DigitalOcean.
- Check if a value is an object☆42Sep 18, 2026Updated 3 weeks ago
- Get the version of a binary in semver format☆43Sep 18, 2026Updated 3 weeks ago
- align-text with ANSI support for CLIs☆24Sep 27, 2021Updated 5 years ago
- ES2015 Number.isNaN() ponyfill☆30May 2, 2024Updated 2 years ago
- Get the first path that exists on disk of multiple paths☆64Sep 18, 2026Updated 3 weeks ago
- List of platforms supported by Node.js☆12Nov 3, 2021Updated 4 years ago
- Check if something is a promise☆45Sep 18, 2026Updated 3 weeks ago