0.1.2 • Published 4 years ago

pambda-env v0.1.2

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

pambda-env

Configure environment varibles.

Installation

npm i pambda-env

Usage

const { compose, createLambda } = require('pambda');
const { env } = require('pambda-env');

exports.handler = createLambda(
  compose(
    env({
      ssm: {
        path: '/my-app',
        withDecryption: true,
      },
    }, {
      DATABASE_URL: true,
    }),
  )
);

env(srcOptions, checkOptions)

  • srcOptions
  • checkOptions
    • Options that is passed to checkenv().
    • If this arg is omitted, do nothing.

License

MIT