Skip to content

luobotang/addTimeToUrl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

addTimeToUrl

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"

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

About

add timestamp to url

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published