Skip to content
JS
Package

if-env

Simplify npm scripts with "if-env ... && npm run this || npm run that"

v1.0.4, 28 Jan 2018MIT-Types: None
$ npm install if-env

Key numbers

As of 25 Sept 2026
Weekly downloads
28.9k
-8% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
8 years ago
v1.0.4
GitHub stars
98
11 forks
Open issues / PRs
2 / 4
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
020k40k60kSept 2025Mar 2026Sept 2026High 56k (3 Mar 2026)Low 21.4k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

28,892 downloads last week, 138,498 in the last month. The 12-month change of -8% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
1.0.4, 28 Jan 20188 years ago
First published
-
Last push to GitHub
27 Mar 2026181 days before the snapshot
Repository archived
No
Open issues
2
Open pull requests
4
Commits, last 52 weeks
0
Dependents on npm
34

Major versions

-

Recent releases

-

Module format
-Not determined from package.json
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
-
Dependencies (1)
npm-run-all
npm install if-env
  • jsDelivrhttps://cdn.jsdelivr.net/npm/if-env@1.0.4/
  • unpkghttps://unpkg.com/if-env@1.0.4/
  • esm.shhttps://esm.sh/if-env@1.0.4
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.