Check if your code is running as an npm or yarn script
☆66Sep 18, 2026Updated 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. We may earn a commission when you buy through links labeled 'Ad' on this page.
Sorting:
- Check if a value is a regular expression☆26Sep 18, 2026Updated 2 months ago
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 5 years ago
- Check if a number is a redirect HTTP status code☆25Sep 18, 2026Updated 2 months ago
- Check if a path is inside another path☆41Sep 18, 2026Updated 2 months ago
- Node's default require extensions as a separate module☆11Sep 18, 2026Updated 2 months ago
- 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.
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 5 years ago
- ES2015 `String#codePointAt()` ponyfill☆23Jan 23, 2021Updated 5 years ago
- Check if a path is the current working directory☆23Sep 18, 2026Updated 2 months ago
- Check if a path is in the current working directory☆23Sep 18, 2026Updated 2 months ago
- Lowercase the keys of an object☆43Sep 18, 2026Updated 2 months ago
- Parse/stringify contact info like `Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)`☆38Aug 9, 2021Updated 5 years ago
- Get the visual width of the widest line in a string - the number of columns required to display it☆40Sep 18, 2026Updated 2 months ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Sep 18, 2026Updated 2 months ago
- Get the diff type of two semver versions: 0.0.1 0.0.2 → patch☆69Sep 15, 2025Updated last year
- Managed Kubernetes at scale on DigitalOcean • AdDigitalOcean Kubernetes includes the control plane, bandwidth allowance, container registry, automatic updates, and more for free.
- fs read and write streams based on minipass☆21Oct 25, 2025Updated last year
- Modern version of duplexer2☆17Sep 18, 2026Updated 2 months ago
- ES2015 Number.isNaN() ponyfill☆30May 2, 2024Updated 2 years ago
- Get the set npm registry URL☆57Sep 18, 2026Updated 2 months ago
- Repeat a string - fast☆35Sep 18, 2026Updated 2 months ago
- align-text with ANSI support for CLIs☆25Sep 27, 2021Updated 5 years ago
- Gracefully restore the CLI cursor on exit☆43Sep 18, 2026Updated 2 months ago
- Convert matching single-quotes to double-quotes: `I 'love' unicorns` → `I "love" unicorns`☆24Sep 18, 2026Updated 2 months ago
- Define a non-enumerable property on an object.☆22Mar 14, 2023Updated 3 years ago
- 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 your code is running as an npm script☆54Sep 18, 2021Updated 5 years ago
- Modify the filename in a path☆17Sep 18, 2026Updated 2 months ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆66Sep 18, 2026Updated 2 months ago
- [DEPRECATED] Node.js os.tmpdir() ponyfill☆37Jan 24, 2021Updated 5 years ago
- Check whether a binary version satisfies a semver range☆23Sep 18, 2026Updated 2 months ago
- Return true if the file is (or the file path has) a dotfile.☆14May 30, 2017Updated 9 years ago
- Create an object path (dot notation) from a list or array of strings.☆16Dec 31, 2020Updated 5 years ago
- Temporarily substitute tokens in the given `string` with placeholders, then put them back after transforming the string.☆14Sep 25, 2016Updated 10 years ago
- Truncate a semver version: 1.2.3 → 1.2.0☆17Sep 18, 2026Updated 2 months ago
- 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.
- Get the user home directory with fallback to the system temp directory☆30Sep 18, 2026Updated 2 months ago
- Map `visit` over an array of objects.☆17Jun 27, 2022Updated 4 years ago
- Returns an object with the base path and the actual pattern from a glob.☆17Apr 12, 2017Updated 9 years ago
- Check if something is a generator function☆24Sep 18, 2026Updated 2 months ago
- Convert matching double-quotes to single-quotes: `I "love" unicorns` → `I 'love' unicorns`☆58Sep 18, 2026Updated 2 months ago
- Unpipe a stream from all destinations☆22Dec 15, 2020Updated 5 years ago
- Timeout HTTP/HTTPS requests☆49Sep 18, 2026Updated 2 months ago
Are these results useful?