inikulin / ineed

Web scraping and HTML-reprocessing. The easy way.
MIT License
393 stars 13 forks source link

Support for local files #5

Open stevenvachon opened 8 years ago

stevenvachon commented 8 years ago

Using streams, since parse5 now supports them. With that, also update to latest parse5.

inikulin commented 8 years ago

It would be nice to switch to the promises. Do you mind to elaborate?

stevenvachon commented 8 years ago

Yes, promises too:

ineed.something.from("/path/to/file.html")
.then( function(results){} )
.catch(err);