# credstash-env

> Set environment variables from credstash

Latest version **1.0.0** (published 2017-10-15) · MIT license · 0 weekly downloads

## Install

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

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-10-15 |
| First published | 2017-10-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | a.kazmin |
| Maintainers | kazmin |
| Keywords | env, credstash, KMS |

## Links

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

## Dependencies (2)

- [deasync](https://npm.io/package/deasync.md) ^0.1.10
- [credstash](https://npm.io/package/credstash.md) ^1.0.42

## Recent versions

- 1.0.0 (latest) — 2017-10-15

## README

# credstash-env
Setup your env from credstash

# Installation
Ensure you have [AWS credentials configured](http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/node-configuring.html).
The credentials should be set up as a [secret reader](https://github.com/fugue/credstash#secret-reader)
```bash
$ npm install --save credstash-env
```
or
```bash
$ yarn add credstash-env
```

# Examples

```js
const credstashEnv = require('credstash-env');

credstashEnv('credstash_table_name', [
  'my_credstash_key',
  { 'another_credstash_key': 'ANOTHER_ENV_VARIABLE' }
]);

console.log(process.env.MY_CREDSTASH_KEY); // my_credstash_value
console.log(process.env.ANOTHER_ENV_VARIABLE); // another_credstash_value
```

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