UNPKG

mof-cookie

Version:

cookie obtain middleware for floodesh

20 lines (13 loc) 385 B
# mof-cookie mof-cookie is a middleware of [floodesh](https://github.com/bda-research/floodesh), which will fetch a random cookie from a web-service. # Install ``` npm install mof-cookie ``` # Usage ```javascript const cookie = require('mof-cookie'); const Worker = require('floodesh/worker'); const worker = new Worker(); worker.use(co.wrap(cookie(worker.config.service))); ```