Skip to content

ragingwind/env-touch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

env-touch Build Status

Touch env file from local environments and options

Install

$ npm install --save env-touch

Usage

const touch = require('env-touch');

touch({
  LANG: 'Us',
  SHELL: 'zsh',
  TEST: 1
}, {
  breakLine: '\n'
})
//=> LANG=Us\nSHELL=zsh\nTEST=1

API

dotenvTouch(input, [output], [options])

input

Type: object

Object which become to field-value

output

Type: 'String'

Path of output file. If it is not given skipping file writing.

options

breakLine

Type: String
Default: \n

Characters for break a like aka CR/LF

CLI

$ npm install --global env-touch
$ env-touch --help

License

MIT © Jimmy Moon

About

Touch .env file from local environments

Resources

License

Stars

Watchers

Forks

Packages

No packages published