Socket
Socket
Sign inDemoInstall

12g-env-template

Package Overview
Dependencies
39
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    12g-env-template

Create a .env template / example file based on a local .env


Version published
Weekly downloads
25
decreased by-3.85%
Maintainers
1
Install size
1.84 MB
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 30 May 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc