Rēkai(Tamil) - Fingerprint(English)
Grunt task for Fingerprinting based on the file modified time / Nodejs Crypto md5 algorithm. This Grunt task can be used for assets versioning
Setup
Install grunt-rekai
:
npm install grunt-rekai --save-dev
Example
grunt;grunt;
Options
-
algorithm(optional): Datatype string which decides algorithm to generate fingerprint value, "timeStamp" - fingerprint based on time modified,"md5" - node crypto md5 algorithm based output. default to "md5".
-
baseVal(optional): Datatype string which decides base value for out put fingerprinting value in "hex" or "base16", "base64". default value "hex" or "base16"
-
action(optional): Datatype string which decides whether to rename or create copy file along fingerprint value.
-
template(mandatory): Datatype string, template to create fingerprinting value.
-
filename(mandatory): Datatype string, file path to save the fingerprint output value.
advantage of grunt-rekai
-
Provides option to rename and create new copy of base file
-
Shorter fingerprint # value, based on time modification
Note:
As part of base value conversion,character "/" is replaced by "-" to avoid file directory structure confusion.