object-hash
Blake object hash.
Usage
const objectHash = require('object-hash')
let exampleObject = {
"@context": "http://schema.org",
"@type": "Book",
"accessibilityAPI": "ARIA",
"accessibilityControl": [
"fullKeyboardControl",
"fullMouseControl"
],
"accessibilityFeature": [
"largePrint/CSSEnabled",
"highContrast/CSSEnabled",
"resizeText/CSSEnabled",
"displayTransformability",
"longDescription",
"alternativeText"
],
"accessibilityHazard": [
"noFlashingHazard",
"noMotionSimulationHazard",
"noSoundHazard"
],
"aggregateRating": {
"@type": "AggregateRating",
"reviewCount": "0"
},
"bookFormat": "EBook/DAISY3",
"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)
objectHash(exampleObject)
API
objectHash
object
Installation
$ npm install object-hash
License
MIT