mof-cheerio
v1.0.5
Published
cheerio wrapper for middleware of floodesh
Downloads
18
Maintainers
Readme
mof-cheerio
simple cheerio wrapper for middleware of floodesh
Install
npm install mof-cheerio
Test
npm test
Usage
In floodesh, use it like:
const Worker = require("floodesh").Worker
const cheerio = require("mof-cheerio")
const worker = new Worker(config);
worker.responsemw.use( (ctx,next) => {
ctx.content = ctx.body.toString();
return next();
})
worker.responsemw.use(cheerio())