credstash-env
v1.0.0
Published
Set environment variables from credstash
Downloads
2
Readme
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