This is a simple function, used to add timestamp to url.
As part of xsm-url-utils, this repo will not update.
e.g.
addTimeToUrl('http://www.sample.com/path.html');
// return:
// "http://www.sample.com/path.html?v=1438165051488"
npm install add_time_to_url
addTimeToUrl
is a simple function, used as CommonJS Module:
var addTimeToUrl = require('addTimeToUrl');
var url = addTimeToUrl('http://www.sample.com/path.html');
But, if used in browser directly, the global function's name is XSM_addTimeToUrl
.
npm test