12g-env-template

1.0.6 • Public • Published

12g-env-template

Greenkeeper badge

This package creates a template file based on your local .env file. It will empty out all values, but it will leave comments and newlines in.

Greenkeeper badge

Usage

Install the dependency:

$ npm install --save 12g-env-template

Then require it in your code:

var template = require('12g-env-template');

Then create a template file:

template.create()

Or with options:

template.create('.env.production', '.env.example')

Methods

.create([input file], [output file])

By default, it will take .env as input and use .env.template as output.

.exists()

Returns whether the template file already exists.

Package Sidebar

Install

npm i 12g-env-template

Weekly Downloads

8

Version

1.0.6

License

MIT

Last publish

Collaborators

  • aapit