pax_global_header 0000666 0000000 0000000 00000000064 12357265001 0014513 g ustar 00root root 0000000 0000000 52 comment=3c8707bc39dfe9cfab0313ae47eb43db29d6bb54
node-htmlparser2-3.7.3/ 0000775 0000000 0000000 00000000000 12357265001 0014713 5 ustar 00root root 0000000 0000000 node-htmlparser2-3.7.3/.gitattributes 0000664 0000000 0000000 00000000103 12357265001 0017600 0 ustar 00root root 0000000 0000000 # Auto detect text files and perform LF normalization
* text eol=lf node-htmlparser2-3.7.3/.travis.yml 0000664 0000000 0000000 00000000110 12357265001 0017014 0 ustar 00root root 0000000 0000000 language: node_js
node_js:
- 0.10
- 0.11
script: npm run coveralls
node-htmlparser2-3.7.3/LICENSE 0000664 0000000 0000000 00000002120 12357265001 0015713 0 ustar 00root root 0000000 0000000 Copyright 2010, 2011, Chris Winberry . All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE. node-htmlparser2-3.7.3/README.md 0000664 0000000 0000000 00000007467 12357265001 0016210 0 ustar 00root root 0000000 0000000 #htmlparser2
[](https://npmjs.org/package/htmlparser2)
[](https://npmjs.org/package/htmlparser2)
[](http://travis-ci.org/fb55/htmlparser2)
[](https://coveralls.io/r/fb55/htmlparser2)
A forgiving HTML/XML/RSS parser written in JS for NodeJS. The parser can handle streams (chunked data) and supports custom handlers for writing custom DOMs/output.
##Installing
npm install htmlparser2
A live demo of htmlparser2 is available at http://demos.forbeslindesay.co.uk/htmlparser2/
##Usage
```javascript
var htmlparser = require("htmlparser2");
var parser = new htmlparser.Parser({
onopentag: function(name, attribs){
if(name === "script" && attribs.type === "text/javascript"){
console.log("JS! Hooray!");
}
},
ontext: function(text){
console.log("-->", text);
},
onclosetag: function(tagname){
if(tagname === "script"){
console.log("That's it?!");
}
}
});
parser.write("Xyz