assertions about a webpage or website's usability
$ npm install
var ux = require('ux-rule')
var html1 = '<img src="1.png" alt="one"/><img src="2.png" alt="two"/>'
ux.check(html1, '<img alt=".*">')
// ==> true
var html2 = '<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