Skip to content

Fast, flexible, and lean implementation of core jQuery designed specifically for the server. Compatible version for Parse.com

Notifications You must be signed in to change notification settings

icaliman/parse-cheerio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

cheerio

This is a version of cheerio for parse.com

Usage

  1. Put 'cheerio.js' file into your 'cloud/modules/' folder.
  2. Require module in Cloud Code.

Examples

var cheerio = require('cloud/modules/cheerio.js'),
    $ = cheerio.load('<h2 class="title">Hello world</h2>');

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

$.html();
//=> <h2 class="title welcome">Hello there!</h2>
var cheerio = require('cloud/modules/cheerio.js'),
    $ = cheerio.load('<p>paragraph 1</p> <p>paragraph 2</p> <p>paragraph 3</p>');

var list = $('p').map(function() {
  return $(this).text();
}).get();

//=> list = [ "paragraph 1", "paragraph 2", "paragraph 3" ]

About

Fast, flexible, and lean implementation of core jQuery designed specifically for the server. Compatible version for Parse.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published