
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
cyclical-object-hash
Advanced tools
Blake object hash.
const objectHash = require('cylical-object-hash')
let exampleObject = {
"@context": "http://schema.org",
"@type": "Book",
"copyrightHolder": {
"@type": "Organization",
"name": "Holt, Rinehart and Winston"
},
"copyrightYear": "2007",
"description": "NIMAC-sourced textbook",
"genre": "Educational Materials",
"inLanguage": "en-US",
"isFamilyFriendly": "true",
"isbn": "9780030426599",
"name": "Holt Physical Science",
"numberOfPages": "598",
"publisher": {
"@type": "Organization",
"name": "Holt, Rinehart and Winston"
}
}
objectHash.hex(exampleObject)
// '79fc74f0dd70d955a7d61271d09f0806aadff55ea770621cbb9a9194e9b9053cc59c3ca669b273dd0fb1a0efc4617d2c9824a339ad0200fdbd231b549f946027'
objectHash(exampleObject)
// Uint8Array
// Blake2b { digestLength: 64, finalized: false, pointer: 64 }
This takes an ordinary object and will deterministically hash it via blake2b. It returns a Uint8Array by default.
This takes an ordinary object and will deterministically hash it via blake2b. Unlike the function above, it returns it as a hex string.
$ npm install cyclical-object-hash
FAQs
Deterministically hash a cyclical object with blake2b
The npm package cyclical-object-hash receives a total of 3 weekly downloads. As such, cyclical-object-hash popularity was classified as not popular.
We found that cyclical-object-hash demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.