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

/mof-cheerio/

    Package Sidebar

    Install

    npm i mof-cheerio

    Weekly Downloads

    6

    Version

    1.0.5

    License

    ISC

    Last publish

    Collaborators

    • mike442144