npm.io
1.0.0 • Published 8 years ago

credstash-env

Licence
MIT
Version
1.0.0
Deps
2
Vulns
0
Weekly
0
Stars
1

credstash-env

Setup your env from credstash

Installation

Ensure you have AWS credentials configured. The credentials should be set up as a secret reader

$ npm install --save credstash-env

or

$ yarn add credstash-env

Examples

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

Keywords