envp
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Envp

Dead simple environment parser for your app

const Env = require('envp')
const assert = require('assert')

const env = Env({
  NODE_ENV: String, //
  PORT: 3000, // default 3000
})

assert.deepEqual(env, {
  NODE_ENV: 'development',
  PORT: 3000,
})

Install

npm install envp

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i envp

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

6.63 kB

Total Files

6

Last publish

Collaborators

  • mattmueller