highlighted-sources
v0.0.2
Published
Browserify transform to cache the contents of certain js files on bundling.The files are cached as strings in a js object, indexed by filename.
Downloads
10
Maintainers
Readme
highlighted-sources
This transform implements a way to cache the contents of certain *.js files on bundling, filtering file names by comparing them with a given list of keywords through a Regexp. The source files are highlighted from strings to HTML with prism.js, before caching them as strings in a js object (indexed by keyword : {name : fileName, content, contentAsString}).