This package has been deprecated

Author message:

bye~

add_time_to_url

0.2.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i add_time_to_url

Weekly Downloads

1

Version

0.2.1

License

ISC

Last publish

Collaborators

  • luobo-modules