hemanth / nmotw.in

Node Module Of The Week
https://nmotw.in
42 stars 7 forks source link

cheerio #15

Open naushadkm opened 9 years ago

naushadkm commented 9 years ago

Tiny, fast, and elegant implementation of core jQuery designed specifically for the server.

var cheerio = require('cheerio'), $ = cheerio.load('

Hello world

');

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

$.html(); //=>

Hello there!

Installation npm install cheerio

hemanth commented 9 years ago

Yup, cheerio was supposed to be the first module :+1: just digging into those modules that are not in the lime light, but yet very useful :)