broccoli-fingerprint

0.0.4 • Public • Published

broccoli-fingerprint

Broccoli plugin to fingerprint filenames of a tree of files. It optionaly generates a json manifest file mapping the original filenames to the fingerprinted ones.

Install

npm install --save broccoli-fingerprint

Example

var fingerprint = require('broccoli-fingerprint');
 
// Example with default options
var tree = fingerprint(tree, {
  encoding:'utf8'
, separator: '-'
, keepOriginal: true
, extensions: ['js', 'css']
});
 
// Example output:
// <filename>-47f1dd2de35b82f32922850d2eeec45a.js
// <filename>-34c50157779f988854aeb7f451beae74.css
 
// Example with default options
var manifestTree = fingerprint.manifest(tree, {
  extensions: ['js', 'css']
, name: 'fingerprint-manifest.json'
});
 
// Example manifest file: 'fingerprint-manifest.json'
{
  "app.css": "app-47f1dd2de35b82f32922850d2eeec45a.css"
  "app.js": "app-34c50157779f988854aeb7f451beae74.js"
}
 

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    0
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0
  • 0.0.0
    0

Package Sidebar

Install

npm i broccoli-fingerprint

Weekly Downloads

0

Version

0.0.4

License

MIT

Last publish

Collaborators

  • moudy