Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 957 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 957 Bytes

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 @boundstate/dotenv-stringify

Usage

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

License

MIT License