Compose a envfile string from an object, per the motdotla/dotenv parser specifications
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist
examples
src
tests
.babelrc
.gitignore
LICENSE
README.md
package.json

README.md

dotenv-stringify

Compose a envfile string from an object, per the motdotla/dotenv parser specifications. Objects stringified using this package will be parsable by dotenv.parse().

Installation

$ npm install dotenv-stringify

Usage

var fs = require('fs');
const { stringify } = require('dotenv-stringify');
var envstr = stringify(process.env);
fs.writeFileSync('.env', envstr);

Contributions

Install dev dependencies:

$ npm install

Run tests:

$ npm test

Build files:

$ npm run build

License

MIT License