Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 434 Bytes

README.md

File metadata and controls

29 lines (21 loc) · 434 Bytes

pambda-cookie

Cookie parser for Pambda.

Installation

npm i pambda-cookie

Usage

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

export const handler = createLambda(
  compose(
    cookie({}),
    next => (event, context, callback) => {
      // Do something with event.cookies.
    }
  )
);

License

MIT