Check if your code is running as an npm or yarn script
☆66Sep 18, 2026Updated last month
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 last month
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 5 years ago
- Check if a path is inside another path☆40Sep 18, 2026Updated last month
- Check if a number is a redirect HTTP status code☆25Sep 18, 2026Updated last month
- Node's default require extensions as a separate module☆11Sep 18, 2026Updated last month
- AI Agents on DigitalOcean Gradient AI Platform • AdBuild production-ready AI agents using customizable tools or access multiple LLMs through a single endpoint. Create custom knowledge bases or connect external data.
- 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☆22Sep 18, 2026Updated last month
- Check if a path is in the current working directory☆23Sep 18, 2026Updated last month
- Lowercase the keys of an object☆42Sep 18, 2026Updated last month
- Parse/stringify contact info like `Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)`☆38Aug 9, 2021Updated 5 years ago
- fs read and write streams based on minipass☆20Oct 25, 2025Updated last year
- Get the visual width of the widest line in a string - the number of columns required to display it☆40Sep 18, 2026Updated last month
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Sep 18, 2026Updated last month
- 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 diff type of two semver versions: 0.0.1 0.0.2 → patch☆69Sep 15, 2025Updated last year
- Modern version of duplexer2☆17Sep 18, 2026Updated last month
- Define a non-enumerable property on an object.☆21Mar 14, 2023Updated 3 years ago
- ES2015 Number.isNaN() ponyfill☆30May 2, 2024Updated 2 years ago
- Get the set npm registry URL☆57Sep 18, 2026Updated last month
- Gracefully restore the CLI cursor on exit☆42Sep 18, 2026Updated last month
- Repeat a string - fast☆35Sep 18, 2026Updated last month
- align-text with ANSI support for CLIs☆25Sep 27, 2021Updated 5 years ago
- Convert matching single-quotes to double-quotes: `I 'love' unicorns` → `I "love" unicorns`☆24Sep 18, 2026Updated last month
- 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.
- 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 last month
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆66Sep 18, 2026Updated last month
- [DEPRECATED] Node.js os.tmpdir() ponyfill☆37Jan 24, 2021Updated 5 years ago
- Check whether a binary version satisfies a semver range☆23Sep 18, 2026Updated last month
- 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 last month
- 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.
- Get the user home directory with fallback to the system temp directory☆30Sep 18, 2026Updated last month
- 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 a file path is a binary file☆50Sep 18, 2026Updated last month
- Check if something is a generator function☆24Sep 18, 2026Updated last month
- Convert matching double-quotes to single-quotes: `I "love" unicorns` → `I 'love' unicorns`☆57Sep 18, 2026Updated last month
- Unpipe a stream from all destinations☆22Dec 15, 2020Updated 5 years ago