Skip to content

RafaelSalguero/DateVersion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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]

About

Node program that generates a file with a global variable with the current date and time

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published