</>PackageGraphPackageGraph

std-env

npmv4.2.0TypeScript

Runtime 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.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

17 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

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)

@types/node ^26.1.0@typescript/native-preview latest@vitest/coverage-v8 ^4.1.10changelogen ^0.6.2esbuild ^0.28.1mitata ^1.0.34obuild ^0.4.37oxfmt ^0.57.0oxlint ^1.72.0rollup ^4.62.2typescript ^6.0.3vitest ^4.1.10

Used by

Popular packages that depend on std-env.

Relationship graph

Dependencies (left) and dependents (right) of std-env.

Frequently installed together

Release history

7 releases in the last two years, typically about 64 days apart.

Recent versions of std-env
VersionPublishedSizeLicense
4.2.0latest2 months ago17 KBMIT
4.1.04 months ago17 KBMIT
4.0.06 months ago17 KBMIT
4.0.0-rc.16 months ago16 KBMIT
3.10.011 months ago25 KBMIT
3.9.01 year ago25 KBMIT
3.8.11 year ago25 KBMIT
3.8.01 year ago25 KBMIT
3.7.02 years ago26 KBMIT
3.6.02 years ago23 KBMIT
3.5.02 years ago23 KBMIT
3.4.33 years ago23 KBMIT
3.4.23 years ago23 KBMIT
3.4.13 years ago22 KBMIT
3.4.03 years ago22 KBMIT

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.