Licence
ISC
Version
0.2.1
Deps
0
Vulns
0
Weekly
0
DeprecatedThis package is deprecated
addTimeToUrl
This is a simple function, used to add timestamp to url.
e.g.
addTimeToUrl('http://www.sample.com/path.html');
// return:
// "http://www.sample.com/path.html?v=1438165051488"
install
npm install add_time_to_url
usage
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.
test
npm test