std-env
npmv4.2.0TypeScriptRuntime agnostic JS utils
Safe to adopt
Yes — std-env scores well across adoption, maintenance, weight, supply chain, and licensing. 97.9M downloads per week and 6 known dependents. Last published 64 days ago. 8 releases in the last 2 years.
- AAdoption: grade A, Excellent.
97.9M downloads per week and 6 known dependents.
- AMaintenance: grade A, Excellent.
Last published 64 days ago. 8 releases in the last 2 years.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 17 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding std-env to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- No constraint declared
- Module format
- ESM only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the std-env README.
import { runtime, runtimeInfo } from "std-env";
console.log(runtime); // "" | "node" | "deno" | "bun" | "workerd" ...
console.log(runtimeInfo); // { name: "node" }Dependencies
Declared by std-env v4.2.0. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (12)
Used by
Popular packages that depend on std-env.
Next generation testing framework powered by Vite
Missing ECMAScript module utils for Node.js
Type safe SQL query builder
Runtime typescript and ESM support for Node.js
V8 coverage provider for Vitest
Unified Package Manager for Node.js
Relationship graph
Dependencies (left) and dependents (right) of std-env.
Frequently installed together
TypeScript definitions for node
Universal filesystem path utils
Next generation testing framework powered by Vite
V8 coverage provider for Vitest
A minimal library for executing processes in Node
Native-ESM powered web dev build tool
A small library to print colourful messages.
[](https://github.com/mmkal/expect-type/actions/workflows/ci.yml)  [](ht
A lightweight JavaScript debugging utility, forked from debug, featuring TypeScript and ESM support.
Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. It includes many web standards from WHATWG DOM and HTML.
Public API for OpenTelemetry
A JavaScript implementation of many web standards
Release history
7 releases in the last two years, typically about 64 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 4.2.0latest | 2 months ago | 17 KB | MIT |
| 4.1.0 | 4 months ago | 17 KB | MIT |
| 4.0.0 | 6 months ago | 17 KB | MIT |
| 4.0.0-rc.1 | 6 months ago | 16 KB | MIT |
| 3.10.0 | 11 months ago | 25 KB | MIT |
| 3.9.0 | 1 year ago | 25 KB | MIT |
| 3.8.1 | 1 year ago | 25 KB | MIT |
| 3.8.0 | 1 year ago | 25 KB | MIT |
| 3.7.0 | 2 years ago | 26 KB | MIT |
| 3.6.0 | 2 years ago | 23 KB | MIT |
| 3.5.0 | 2 years ago | 23 KB | MIT |
| 3.4.3 | 3 years ago | 23 KB | MIT |
| 3.4.2 | 3 years ago | 23 KB | MIT |
| 3.4.1 | 3 years ago | 22 KB | MIT |
| 3.4.0 | 3 years ago | 22 KB | MIT |
Overview
std-env is an npm package that runtime agnostic JS utils. It is extremely widely used, with about 97.9M downloads per week and 6 known dependents in the graph. The latest version is 4.2.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need runtime agnostic JS utils and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (97.9M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use std-env?
Yes — std-env scores well across adoption, maintenance, weight, supply chain, and licensing. 97.9M downloads per week and 6 known dependents. Last published 64 days ago. 8 releases in the last 2 years.
How do I install std-env?
Run `npm install std-env` to add std-env to your npm project.
What license is std-env released under?
std-env is distributed under the MIT license.
How popular is std-env?
std-env has approximately 97,871,202 downloads per week and 6 known dependent packages.
Is std-env still maintained?
The most recent release of std-env (v4.2.0) was published 2 months ago.
Does std-env run install scripts?
No. std-env does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.