Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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

  • 4.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
371
decreased by-28.1%
Maintainers
1
Weekly downloads
 
Created
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.

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

Keywords

FAQs

Package last updated on 05 Aug 2023

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc