npm

Check out our latest tech talk, "JavaScript Supply Chain Security" presented by VP of Security, Adam Baldwin.Watch it here »

mof-cheerio

1.0.5 • Public • Published

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())

install

npm i mof-cheerio

Downloadsweekly downloads

24

version

1.0.5

license

ISC

last publish

collaborators

  • avatar
Report a vulnerability