dateversion

1.0.5 • Public • Published

dateversion

A node program that generate a single .js that sets a global variable with the current date and time.

Usefull for generating cache busting parameters

Run the program:

node node_modules/dateversion/dateversion "version.js" "app.version"

And the "version.js" file will be generated with:

var app = app || { };
app.version = '20160402T175655';

Install me!

npm install dateversion 

Run without arguments for help:

node node_modules/dateversion/dateversion.js

Or with arguments

node node_modules/dateversion/dateversion.js [filename] [variableName]

Package Sidebar

Install

npm i dateversion

Weekly Downloads

6

Version

1.0.5

License

MIT

Last publish

Collaborators

  • rafaelsalguero