0.2.1 • Published 9 years ago

add_time_to_url v0.2.1

Weekly downloads
4
License
ISC
Repository
github
Last release
9 years ago

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
0.2.1

9 years ago

0.2.0

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago