Miss any of our Open RFC calls?Watch the recordings here! »

beanify-env

1.0.1 • Public • Published

beanify-env

JavaScript Style Guide

install

npm i beanify-env

options

usage

const Beanify=require("beanify")
const beanifyPlugin=require("beanify-plugin")
 
const b=new Beanify({})
 
b
    .register(require("beanify-env"),{
        schema: {
            type: 'object',
            required: ['PORT'],
            properties: {
                PORT: {
                    type: 'integer',
                    default: 6666
                }
            }
        }
    })
    .ready((err)=>{
        console.log(b.config.PORT==6666)
        b.close()
    })
 
 

Install

npm i beanify-env

DownloadsWeekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

4.8 kB

Total Files

7

Last publish

Collaborators

  • avatar