Socket
Socket
Sign inDemoInstall

broccoli-fingerprint

Package Overview
Dependencies
88
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    broccoli-fingerprint

Fingerprint assets with broccoli


Version published
Maintainers
1
Install size
8.47 MB
Created

Readme

Source

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"
}

Keywords

FAQs

Last updated on 14 Jul 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc