Skip to content

yvelianyk/cheerio-bower-build

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cheerio-bower-build

Bower package for cheerio parser

Installation steps

$ bower install cheerio-bower-build --save

Usage

Include cheerio bundle in your index file

<script src="bower_components/cheerio-bower-build/dist/cheerio.js"></script>

Now cheerio is available in global window object (Example from original documentation)

const $ = cheerio.load('<h2 class="title">Hello world</h2>')

$('h2.title').text('Hello there!')
$('h2').addClass('welcome')

$.html()
//=> <h2 class="title welcome">Hello there!</h2>

About

Bower package for cheerio parser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published