screwdriver-hashr

1.1.0 • Public • Published

Screwdriver hashr

Version Downloads Build Status Open Issues Dependency Status License

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.

Readme

Keywords

Package Sidebar

Install

npm i screwdriver-hashr

Weekly Downloads

3

Version

1.1.0

License

BSD-3-Clause

Last publish

Collaborators

  • nokatzhere
  • screwdriver