README
versionify-assets
Simply add checksum of
.js
/.css
file to url querystring for cache busting.
Install
npm install versionify-assets --save
Usage
var versionifyAssets = require('versionify-assets');
// set assets folder optionally, defaults to './public'
// will look for folder starting from project root
versionifyAssets.setFolder('./static');
// returns string with querystring
console.log(versionifyAssets('/app.js'));
// "/app.js?9b8cebc0421241d087f6ab7e815285af803de7e7"
MIT Licensed