object-hash-strict

v4.0.1
Wrapper around object-hash that restricts allowed values
object hash sha1 md5 strict

object-hash-strict

Build Status Test Coverage Dependabot Status Dependencies NPM Downloads Semantic-Release Gardener

Wrapper around object-hash that restricts allowed values

Install

Install with npm:

$ npm install --save object-hash-strict

Usage

Use exactly as object-hash.

Additional Options

The following options can be provided on top of the existing object-hash options.

allowUndefined

Type: Array | Boolean
Default: []

Provide list of keys that are allowed to be undefined. Or boolean to allow any undefined.

How it's different from object-hash

  • Will throw error if a "real" key has an unknown value
  • Does not currently deal with "real" path recursion

** Real means a proper object hierarchy, not hidden properties, symbols, etc

npm i object-hash-strict

Metadata

  • MIT
  • >= 16
  • Lukas Siemon
  • released 8/5/2023

Downloads

Maintainers