0.2.1 • Published 10 years ago
add_time_to_url v0.2.1
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_urlusage
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