项目作者: wenderjean

项目描述 :
Verify environment variables presence for Node JS.
高级语言: JavaScript
项目地址: git://github.com/wenderjean/checkdotenv.git
创建时间: 2016-11-30T12:24:45Z
项目社区:https://github.com/wenderjean/checkdotenv

开源协议:MIT License

下载


checkdotenv

npm version
Dependency Status
Build Status

It’s a project intended to verify if all environment variables previously wrote in the recipe are already set in process.env.

Dependencies

  1. Node 6.4.0+

Install

  1. npm install checkdotenv --save

Usage

First, define a file .env.example in your project root and then put the line below in top the entry file of your application.

  1. require('checkdotenv').check();

Options

By default checkdotenv will looking for a recipe called .env.example but check method may receive a parameter to change that filename.

  1. require('checkdotenv').check('yourfilename');

Test

  1. npm run test