1.0.0 • Published 7 years ago

credstash-env v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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