0.0.13 • Published 7 years ago

grunt-kairekai v0.0.13

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

KaiRē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-kairekai:

npm install grunt-kairekai --save-dev

Example

grunt.initConfig({
  kairekai: {
    sourceOne: {
      src: [
        'assets/textfile-one*.js'
      ],
      baseVal: "base64",
      action:"createSrcCopy",
      filename: 'a.txt'
    },
    sourceTwo: {
      src: [
        'assets/textfile-two.js'
      ],
      algorithm: "timeStamp",
      action:"createSrcCopy",
      filename: 'a.txt'
    },
    sourceThree: {
      src: [
        'assets/textfile-three.js'
      ],
      algorithm: "timeStamp",
      action:"createSrcCopy",
      filename: 'a.txt'
    }
  }
});
grunt.loadNpmTasks('grunt-kairekai');

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(mandatory): Datatype string which decides whether to rename or create copy file along fingerprint value.

  • filename(mandatory): Datatype string, file path to replace the original file with fingerprint value.

0.0.13

7 years ago

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago