cheerio-repl

0.1.3 • Public • Published

Cheerio REPL

A Node JS REPL for interacting with live Cheerio DOM.

Installation

npm install -g cheerio-repl

Usage

cheerio <URL>

Global objects available inside the shell:

$ = cheerio parsed DOM object
res = raw response object returned from URL

Example

At the command prompt run the following: cheerio "http://tubes.io"

The cheerio prompt should appear whereupon you can interact with the loaded DOM like so:

cheerio> $('title').text();
'Home - tubes.io'
cheerio>

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.3
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.3
    2
  • 0.1.2
    1
  • 0.1.1
    1
  • 0.1.0
    1

Package Sidebar

Install

npm i cheerio-repl

Weekly Downloads

5

Version

0.1.3

License

MIT

Last publish

Collaborators

  • kuhnza