moov_cheerio is an extension of Cheerio, a lean server-side implementation of jQuery that allows you to manipulate HTML on a server. We use Cheerio to select items in the HTML of the page and transform them as necessary.
Moovweb uses this server-side implementation for performance reasons. Transforming a page on the server is far faster than relying on the client to manipulate the DOM. This also means that your site doesn't have moov_cheerio loaded on it.
moov_cheerio contains additional prototype methods, their documentation, and augmented documentation of the original Cheerio methods as well.
All documentation examples will refer to the following HTML input in a standard webpage:
<ul id="fruits"> <li class="apple" data-which="fuji">Apple</li> <li class="orange">Orange</li> <li class="pear">Pear</li> </ul>
After entering your project's directory, you can install your required dependencies locally using:
$ npm install
To run the test suite, enter the following command in your Terminal:
$ npm test