Screwdriver hashr
Wrapper around the hashr library to simplify generating hash ids for data objects
Usage
npm install screwdriver-hashr
The module exposes a simple interface for the different options available for calling hasha.
The function calls JSON.stringify
on the value passed in
sha1
const hashr = require('screwdriver-hashr');
const objectToHash = {
hash1: 'value1',
hash2: 'value2'
};
console.log(hashr.sha1(objectToHash));
Testing
npm test
License
Code licensed under the BSD 3-Clause license. See LICENSE file for terms.