Socket
Socket
Sign inDemoInstall

object-hash-strict

Package Overview
Dependencies
2
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-hash-strict


Version published
Weekly downloads
178
increased by104.6%
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

Last updated on 23 Oct 2020

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc