get-html-assets
Install
npm install get-html-assets
About
get-html-assets in an EventEmitter.
This module gets the information for assets from html file markup external links.
Types of files it looks for
- scripts
- styles
- images
It optional gets the contents of the files, or creates read streams for them.
For now get-html-assets will not read images, but will still create streams for them.
Usage
When the read option is set there will be a content
property with the file text set on the file data object of those file types. :)
var GetAssets = ; var h = 'index.html' read: 'scripts' 'styles'; h; h; h; h; h;
Use Streams
var GetAssets = ; var h = 'index.html' stream: 'scripts' 'styles' 'images'; h; h; h; h; h;