Package detail

highlighted-sources

vassilyb3MIT0.0.2

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.

browserify, browserify-transform

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}).