
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
observ-sync-hash
Advanced tools
Synchronize an observable hash table with an array with primary keys
$ npm install --save observ-sync-hash
var sync = require('observ-sync-hash')
var ObservArray = require('observ-array')
var Hash = require('observ-varhash')
var array = ObservArray([])
var hash = Hash({})
sync(array, hash)
array.push(123)
hash()
//=> {123: null}
array.splice(0, 1)
hash()
//=> {}
sync(array, hash, [key]) -> functionReturns an unlisten function.
Required
Type: function
Required
Type: function
Type: string
If provided, the hash keys will be derived from a property of each array item instead of the string values themselves. You can use id or even dot syntax, e.g. foo.id.
Type: boolean
Default: false
If true, data from the array will be added to the hash instead of null values.
MIT © Ben Drucker
FAQs
Synchronize an observable hash table with an array with primary keys
We found that observ-sync-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.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.