# env-touch

> Touch env file from local environments and options

Latest version **1.0.0** (published 2016-07-17) · MIT license · 0 weekly downloads

## Install

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

Provides the command `env-touch`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-07-17 |
| First published | 2016-07-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.0 |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | ragingwind |
| Maintainers | ragingwind |
| Keywords | env, touch, config |

## Links

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

## Dependencies (3)

- [meow](https://npm.io/package/meow.md) ^3.7.0
- [field-value](https://npm.io/package/field-value.md) ^1.0.1
- [object-assign](https://npm.io/package/object-assign.md) ^4.1.0

## 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

- 1.0.0 (latest) — 2016-07-17

## README

# env-touch [![Build Status](https://travis-ci.org/ragingwind/env-touch.svg?branch=master)](https://travis-ci.org/ragingwind/env-touch)

> Touch env file from local environments and options


## Install

```
$ npm install --save env-touch
```

## Usage

```js
const touch = require('env-touch');

touch({
  LANG: 'Us',
  SHELL: 'zsh',
  TEST: 1
}, {
  breakLine: '\n'
})
//=> LANG=Us\nSHELL=zsh\nTEST=1
```


## API

### dotenvTouch(input, [output], [options])

#### input

Type: `object`

Object which become to field-value

#### output

Type: 'String'

Path of output file. If it is not given skipping file writing.

#### options

##### breakLine

Type: `String`  
Default: `\n`

Characters for break a like aka CR/LF

## CLI

```
$ npm install --global env-touch
```

```
$ env-touch --help
```

## License

MIT © [Jimmy Moon](http://ragingwind.me)

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