credstash-env
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Dependencies (2)

Dev Dependencies (7)

Package Sidebar

Install

npm i credstash-env

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • kazmin