0.0.8 • Published 3 years ago

env-write v0.0.8

Weekly downloads
16
License
ISC
Repository
github
Last release
3 years ago

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);
0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago