You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

object-hash-strict

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-hash-strict

Wrapper around object-hash that restricts allowed values


Version published
Weekly downloads
363
decreased by-20.92%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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.

allowedUndefined

Type: Array
Default: []

Provide list of keys that are allowed to be 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

Keywords

FAQs

Package last updated on 28 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc