Wrapper around the hashr library to simplify generating hash ids for data objects
Please note that this code is no longer used by the screwdriver.cd team and has not been maintained in a while. You are welcome to use and/or contribute to it at your own risk.
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
const hashr = require('screwdriver-hashr');
const objectToHash = {
hash1: 'value1',
hash2: 'value2'
};
console.log(hashr.sha1(objectToHash));
npm test
Code licensed under the BSD 3-Clause license. See LICENSE file for terms.