Catalog npm
Back to packageRELEASE DETAILS

2.2.2

npm

@01/env

A tiny env parser for nodejs and browser

envnodejsutils
Published17 Jan 2024
Direct dependencies0
Transitive dependenciesNot calculated

README

Current package documentation

env

CircleCI Maintainability Test Coverage

Nodejs env utils

env

const nodeEnv:string = env("NODE_ENV", "development")
// process.env.NODE_ENV or "development"

envInt

const timeout:number = envInt("TIMEOUT", 5000)
// process.env.TIMEOUT as int or 5000

envFloat

const scaleFactor:number = envFloat("SCALE_FACTOR", 2.56)
// process.env.SCALE_FACTOR as float or 2.56

envBoolean

const isEnabled:boolean = envBoolean("IS_ENABLED", false)
// process.env.IS_ENABLED as boolean or false

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 0

Native requirements
0 direct targetsNot calculated transitive count
No declared dependencies in this collected response

Declarations describe requirements; they are not a resolved dependency graph.

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "a1138abc1b0e4559e389a08254b3a6ee7ddca99a",
  "tarball": "https://registry.npmjs.org/@01/env/-/env-2.2.2.tgz",
  "fileCount": 16,
  "integrity": "sha512-dz/4BahuKzSqzN7/ze5ybsqPnr171YlMdE/9ex/jLaDOg3PUMmXHhZR949WjvxC6cW5B39UpG5hXqYKD+IBQNQ==",
  "signatures": [
    {
      "sig": "MEQCIH1iaxoKiE9pURBmEENvEul5qgMhmDoQe1S43UnU8N8lAiBt9N4AnHsmEq+dEeBgl7tkZhRrcC2VlYwk9LA8odogMg==",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 11062
}

Repository

PENDING
01alchemist/web-servicelib-

Shared repository data · GitHub

License detected in repository
Not collected

Repository

NOT_FOUND
01alchemist/web-service-lib

Shared repository data · GitHub

License detected in repository
Not collected

Repository

PENDING
01alchemist/env

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:56 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:449ab7355e58af2262d5d8affbb09062a8e5cd9c5cfca6a3694ae251f18633fe

Other collected versions

2.4.22 Jan2.4.02 Jan2.3.12 Jan0.1.51 Jan0.1.329 Dec2.2.116 JanView all collected versions →