assertions about a webpage or website's usability
$ npm install
varux=require('ux-rule')varhtml1='<img src="1.png" alt="one"/><img src="2.png" alt="two"/>'ux.check(html1,'<img alt=".*">')// ==> truevarhtml2='<img src="1.png"/><img src="2.png" alt="two"/>'ux.check(html2,'<img alt=".*">')// ==> falseLocated in examples/
Run an example
$ node examples/example1.js
- cheerio: Use this library to parse and analyze a html document