0.1.0 • Published 7 years ago
bs-cookie-parser v0.1.0
bs-cookie-parser
cookie-parser binding in ReasonML
Example
let app = Express.express();
App.use(app, CookieParser.make());
App.listen(app, ~port=3000);Installation
npm install --save bs-cookie-parser bs-express
Add bs-cookier-parser and bs-express to bsconfig.json. For example:
{
...
"bs-dependencies": [
"bs-express",
"bs-cookie-parser"
]
}Testing in development
In one terminal:
npm run startIn second terminal:
cd tests && ./test.shTesting relies on querying a the
example/Index.reserver and making sure the output matches thetests/reference.data.