npm.io
3.0.1 • Published 2 years ago

dotenv-stringify

Licence
MIT
Version
3.0.1
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
6

dotenv-stringify

Build Status Download Status Sponsor on GitHub

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

import fs from 'fs'
import stringify from 'dotenv-stringify'
const envstr = stringify(process.env);
fs.writeFileSync('.env', envstr);

License

MIT License

Keywords