1.0.0 • Published 9 years ago

learning-node-cheerio-test v1.0.0

Weekly downloads
8
License
KINDLY
Repository
github
Last release
9 years ago

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!