Catalog npm
PACKAGE EXPLORERView in registry

12g-cleandotenv

npm

This package enables you to load .env files and return their values as an object.

12factorconfigurationdotenvenv
Versions collected2
Direct dependencies1From release 1.0.1
Last observed20 Oct, 18:12 UTC

README

Current package documentation

12g-cleandotenv

This package enables you to load .env files and return their values as an object.

It cleans out:

  • Comment lines
  • Single or double quotes from values

Usage

const dotenv = require('12g-cleandotenv')

dotenv.load()
.then(vars => {
    console.log(vars)
})

Methods

.load([path])

Loads a .env file and returns the cleaned up variables in an object, as a Promise.

.clean(input)

Cleans up the content of a .env file and returns the variables in an object. The env file content input can be a string or an object.

Downloads & popularity

Awaiting observations

No metric observations yet

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

Versions 2

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.1Registry latest26 May 20171
1.0.025 May 20171

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
grrr-amsterdam/12g-cleandotenv

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:12 UTC

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

Record identity

package:03f4e171ee9a39be5edbaaf476c49b738e7f7e83cd7ba202293ada881178d1eb