Wrapper module for generating ids based on a hash
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.eslintignore
.eslintrc.yaml
.gitignore
CONTRIBUTING.md
LICENSE
README.md
index.js
package.json
screwdriver.yaml

README.md

Screwdriver hashr

Version Downloads Build Status Open Issues Dependency Status License

Wrapper around the hashr library to simplify generating hash ids for data objects

Deprecated

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.

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.