# env2yaml

> Output environment variables to yaml

Latest version **0.0.11** (published 2022-01-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install env2yaml
pnpm add env2yaml
yarn add env2yaml
bun add env2yaml
```

Provides the command `env2yaml`.

## Health

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

Positive: has types; no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.11 |
| Published | 2022-01-24 |
| First published | 2021-05-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=8.0.0 |
| Dependencies | 5 |
| Unpacked size | 5.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Petr Plenkov |
| Maintainers | theplenkov-npm |
| Keywords | oclif |

## Links

- npm: https://www.npmjs.com/package/env2yaml
- Repository: https://github.com/theplenkov-npm/env2yaml
- Homepage: https://github.com/theplenkov
- Issues: https://github.com/theplenkov-npm/env2yaml/issues
- npm.io page: https://npm.io/package/env2yaml

## Dependencies (5)

- [yaml](https://npm.io/package/yaml.md) ^1.10.2
- [tslib](https://npm.io/package/tslib.md) ^1
- [@oclif/config](https://npm.io/package/@oclif/config.md) ^1
- [@oclif/command](https://npm.io/package/@oclif/command.md) ^1
- [@oclif/plugin-help](https://npm.io/package/@oclif/plugin-help.md) ^3

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 0.0.11 (latest) — 2022-01-24
- 0.0.10 — 2021-11-23
- 0.0.9 — 2021-11-19
- 0.0.8 — 2021-05-12
- 0.0.7 — 2021-05-11
- 0.0.6 — 2021-05-11

## README

Command line to store environment variables in yaml file

### Install
```
npm i -g env2yaml
```

### Usage

```
$ env2yaml [VARIABLES]
```

### Arguments

```
VARIABLES Comma-separated list of variables to output
```

### Options

```
-h, --help show CLI help
-o, --output=output [default: env.yaml] Output file
-v, --version show CLI version
```

### generation of yaml files with values from package.json
another way of calling it is via npx. THe difference here - you can have here values from package.json. Just for example, command like
```shell
$ npx env2yaml npm_package_name,npm_package_version
```

creates me a file like this:
```yaml
npm_package_name: env2yaml
npm_package_version: 0.0.8
```

then later on I can use it for example to generate other yaml files:

```
image:
        repository: docker.com/projects/{{.Values.npm_package_name}}
        tag: v{{.Values.npm_package_version}}
```

```
helm template ./chart -f env.yaml > application.yaml
```

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