Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

ac-rev-hash

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ac-rev-hash

> Create a hash for file revving

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

ac-rev-hash

Create a hash for file revving

It will create a md5 hash from the input buffer and slice it to 20 characters, which is unique enough for this purpose.

Install

$ npm install --save ac-rev-hash

Usage

var fs = require('fs');
var revHash = require('ac-rev-hash');
var buffer = fs.readFileSync('unicorn.png');

revHash(buffer);
//=> 'bb9d8fe615bb9d8fe615'

License

MIT © Sindre Sorhus

FAQs

Package last updated on 26 May 2016

Did you know?

Socket

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