Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

dotenv-stringify

compwright21.9kMIT3.0.1

Compose a envfile string from an object, per the motdotla/dotenv parser specifications

env, envfile, dotenv, stringify, json, write, save

readme

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

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

3.0.1 (2024-05-23)

Bug Fixes

  • quote strings containing hashtag (#12) (913ece3)

3.0.0 (2022-11-20)

⚠ BREAKING CHANGES

  • ES module update

Features