bauer-dom

0.2.2 • Public • Published

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");
  });

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i bauer-dom

Weekly Downloads

2

Version

0.2.2

License

MIT

Last publish

Collaborators

  • yneves