learning-node-cheerio-test

1.0.0 • Public • Published

Cheerio

cd cheerio
npm i
node main.js

How to use

// Include cheerio
var cheerio = require("cheerio");

// Load some HTML
var $ = cheerio.load("<body></body>");

// Append a new element
$("body").append("<span>hi</span>");

// Output the final HTML
console.log($.html());
// => "<body><span>hi</span></body>"

Resources

Big thanks to the Cheerio project!

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i learning-node-cheerio-test

    Weekly Downloads

    0

    Version

    1.0.0

    License

    KINDLY

    Last publish

    Collaborators

    • ionicabizau