0.0.13 • Published 9 years ago

grunt-kairekai v0.0.13

Weekly downloads
-
License
ISC
Repository
-
Last release
9 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

9 years ago

0.0.12

10 years ago

0.0.11

10 years ago

0.0.10

10 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago