New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

object-hash-light

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-hash-light

Generate hashes from objects and values in modern browser

  • 1.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

object-hash-light

Generate hashes from objects and values in modern browser, node and deno

NodeDenoChromeFirefoxOperaSafari
151.113734247

* Android Chrome, Firefox and iOS Safari support version is same with Desktop version

Less than < 300 Bytes bundlephobia

install

npm i object-hash-light

usage

import hash from "object-hash-light";

const result = await hash({ foo: "bar" });
// result is a5e744d0164540d33b1d7ea616c28f2fa97e754a

algorithms

SHA-1 (default), SHA-256, SHA-384, SHA-512

const result = await hash({ foo: "bar" }, { algorithm: "SHA-512" });
// result is 0db68ad4e41d3b26ba3fc48a5da7c9f616b813e77cb4e951187e1f2a37c2bad94041089f89f6012ee7b44e21f863c5d9553e3b665edae8640bb2274b555266eb

Keywords

FAQs

Package last updated on 28 Aug 2021

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