# swipe-env

> replace env $variables with env values

Latest version **0.1.5** (published 2021-01-30) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.5 |
| Published | 2021-01-30 |
| First published | 2021-01-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | 14.7.0 |
| Dependencies | 0 |
| Unpacked size | 7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | edo92 |
| Maintainers | edo1792 |
| Keywords | env, swipe $variables with values |

## Links

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

## 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.1.5 (latest) — 2021-01-30

## README

## Usage

```js
const Artifacts = require("../dist");

const configs = {
  files: {
    appSpec: {
      template: "./appSpec.yml",
      filename: "appSpec",
      ext: "yml",
      buildTo: "../",
    },
    taskdef: {
      template: "./taskdef.json",
      filename: "taskdef",
      ext: "json",
      buildTo: "../",
    },
  },
};

const envs = {
  $AWS_ACCOUNT_ID: process.argv[2],
  $AWS_DEFAULT_REGION: process.argv[3],
  $SERVICE_NAME: "dockerapp-task-def",
  $SERVICE_VERSION: "12",
  $CONTAINER_NAME: "nginx",
  $CONTAINER_PORT: 80,
};

const atfs = new Artifacts();
atfs.create(configs, envs);
```

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