bauer-dom
v0.2.2
Published
Wrapper for Cheerio.
Downloads
2
Readme
bauer-dom
Wrapper for Cheerio that provides a simplified constructor and changes the context of callbacks to a Cheerio
object instead of raw element.
Installation
npm install bauer-dom
Usage
var dom = require("bauer-dom");
// extract all link urls in the document
var urls = dom("<html>...</html>")
.find("a[href]")
.map(function() {
return this.attr("href");
});