Event-based streaming HTML parser

npm install streamflow
2 downloads in the last week
8 downloads in the last month


Event-based streaming HTML parser.

Use streamflow to parse HTML, walk the node tree and fire an event on every node that it encounters.


"use strict";

var streamflow = require('streamflow');

sf.on('node', function (previousTag, currentTag, nextTag) {

    // do something with the tag currently being passed


sf.parse('<html><head></head><body class="what"></body></html>');
npm loves you