Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including envlint with all npm packages installed. Try it out:

var envlint = require("envlint")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

envlint v0.1.9

Lint your env files with ease


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.


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

    "required": true,
    "type": "number"
    "required": true,
    "type": "string",
    "length": "8-12"

Comment format

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

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
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free