# env-write

> This package makes ENV file creation super easy!

Latest version **0.0.8** (published 2021-02-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install env-write
pnpm add env-write
yarn add env-write
bun add env-write
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2021-02-09 |
| First published | 2021-02-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | geerat |
| Maintainers | geerat |
| Keywords | env, generate, environment, variables, front-end, web, small |

## Links

- npm: https://www.npmjs.com/package/env-write
- Repository: https://github.com/geerat/env-write
- Homepage: https://github.com/geerat/env-write#readme
- Issues: https://github.com/geerat/env-write/issues
- npm.io page: https://npm.io/package/env-write

## Alternatives

- [replicas-cli](https://npm.io/package/replicas-cli.md) — 3.0K weekly downloads
- [env-contract](https://npm.io/package/env-contract.md) — 133 weekly downloads
- [@openveo/api](https://npm.io/package/@openveo/api.md) — 61 weekly downloads
- [@ryniaubenpm2/cumque-error-reiciendis](https://npm.io/package/@ryniaubenpm2/cumque-error-reiciendis.md) — 54 weekly downloads
- [ts-global-type-extra](https://npm.io/package/ts-global-type-extra.md) — 11 weekly downloads

## Recent versions

- 0.0.8 (latest) — 2021-02-09
- 0.0.7 — 2021-02-09
- 0.0.6 — 2021-02-09
- 0.0.5 — 2021-02-09
- 0.0.4 — 2021-02-05
- 0.0.3 — 2021-02-05
- 0.0.2 — 2021-02-03
- 0.0.1 — 2021-02-03

## README

# env-write
This package makes ENV file creation super easy! Plus it's less than 2 KB!

## Getting Started

# Install

`npm i env-write`

## Use

To download an ENV file to a client:

```
import { generateAndDownloadENV } from 'env-write';

const yourFileName = "settings";

const yourData = {
    Item1: "item 1 contents",
    Item2: "<maybe a hex colour>",
    Item3: "<maybe a base url>"
}

generateAndDownloadENV(yourData, yourFileName);
```

To just get a Blob 

```
import { generateENV } from 'env-write';

const yourData = {
    Item1: "item 1 contents",
    Item2: "<maybe a hex colour>",
    Item3: "<maybe a base url>"
}

generateENV(yourData);
```

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