# dotenv-stringify

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

Latest version **3.0.1** (published 2024-05-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install dotenv-stringify
pnpm add dotenv-stringify
yarn add dotenv-stringify
bun add dotenv-stringify
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.0.1 |
| Published | 2024-05-23 |
| First published | 2016-12-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >= 16 |
| Dependencies | 0 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Jonathon Hill |
| Maintainers | compwright |
| Keywords | env, envfile, dotenv, stringify, json, write, save |

## Links

- npm: https://www.npmjs.com/package/dotenv-stringify
- Repository: https://compwright@github.com/compwright/dotenv-stringify
- Homepage: https://github.com/compwright/dotenv-stringify#readme
- Issues: https://github.com/compwright/dotenv-stringify/issues
- npm.io page: https://npm.io/package/dotenv-stringify

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 3.0.1 (latest) — 2024-05-23
- 3.0.0 — 2022-11-20
- 2.0.7 — 2022-04-27
- 2.0.6 — 2021-06-15
- 2.0.5 — 2021-05-12
- 2.0.4 — 2020-12-16
- 2.0.3 — 2020-07-21
- 2.0.2 — 2020-03-24
- 2.0.1 — 2019-09-02
- 2.0.0 — 2019-09-02
- 1.0.0 — 2016-12-29

## README

# dotenv-stringify

[![Build Status](https://app.travis-ci.com/compwright/dotenv-stringify.svg?branch=master)](https://app.travis-ci.com/github/compwright/dotenv-stringify)
[![Download Status](https://img.shields.io/npm/dm/dotenv-stringify.svg?style=flat-square)](https://www.npmjs.com/package/dotenv-stringify)
[![Sponsor on GitHub](https://img.shields.io/static/v1?label=Sponsor&message=❤&logo=GitHub&link=https://github.com/sponsors/compwright)](https://github.com/sponsors/compwright)

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

## Installation

```
$ npm install dotenv-stringify
```

## Usage

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

## License

MIT License

---
_Source: https://npm.io/package/dotenv-stringify · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
