Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.
/ cheerio-repl Public archive

Node JS REPL for interacting with a live Cheerio DOM.

License

Notifications You must be signed in to change notification settings

kuhnza/cheerio-repl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

Node JS REPL for interacting with a live Cheerio DOM.

Resources

License

Stars

Watchers

Forks

Packages

No packages published