envlint
Lint your env files with ease
Last updated 8 months ago by seanperkins .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install envlint 
SYNC missed versions from official npm registry.

envlint

Lint your env files with ease CircleCI oclif Version Downloads/week License

Installation and Usage

Prerequisites: Node.js (>=8), npm version 3+.

There are two ways to install ENVLint: globally and locally.

Local Installation and Usage

If you want to include ENVLint as part of your project's build system, we recommend installing it locally. You can do so using npm:

$ npm install envlint --save-dev

You should then setup a configuration file using the format below. You can name it anything but we recommend .envlintrc

After that, you can run ENVLint on any file or directory like this:

$ ./node_modules/.bin/envlint yourfile.js

Global Installation and Usage

We don't currently recommend using envlint globally.

Configuration

Your config file should look something like these below. JSON Format

{
  "FEATURE_FLAG": {
    "required": true,
    "type": "number"
  },
  "COOKIE_SECRET": {
    "required": true,
    "type": "string",
    "length": "8-12"
}

Comment format

# required, number
FEATURE_FLAG=
# required, string, length=8-12
COOKIE_SECRET

Each key in your .env can include the following fields:

  • required - (optional) true, false
  • type - (optional) number, string, boolean
  • length - (optional) a-b, a; where a and b are integers

Current Tags

  • 0.1.9                                ...           latest (8 months ago)

6 Versions

  • 0.1.9                                ...           8 months ago
  • 0.1.8                                ...           8 months ago
  • 0.1.2                                ...           8 months ago
  • 0.1.1                                ...           8 months ago
  • 0.1.0                                ...           8 months ago
  • 0.0.1                                ...           8 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 6
Dependencies (7)
Dev Dependencies (13)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |