1.0.0 • Published 9 years ago

html-meta-parser v1.0.0

Weekly downloads
1
License
GPL-3.0
Repository
github
Last release
9 years ago

html-meta-parser

html metadata parser; simple and stream-based For now, retrieves 'content' attribute of http-equiv="refresh" More patterns should be added

Installation

npm install html-meta-parser -save

Usage:

var fs = require('fs');
var Parser = require('html-meta-parser');

var sHtml = fs.createReadStream('path/to/file.html');
var oParser = new Parser();
sHtml.pipe(oParser);

oParser.on('readable', function(){
	var oData = this.read();
	console.log(oData);
});