
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Watch a Javascript object for changes and stream changes to another object using node.js Streams.
Install with npm:
$ npm install observejs
var observejs = require('observejs');
// the source object
var o = {
name: 'Eugene',
number: 42,
tags: ['tag1', 'tag2', 'tag3'],
cars: [
{
make: 'Toyota',
model: 'Camry'
},
{
make: 'Toyota',
model: 'Corolla'
}
]
};
// deep clone of o
var o2 = JSON.parse(JSON.stringify(o));
// Replicate any changes to o2
observejs.observe(o)
.pipe(observejs.changes(o2));
// Make some changes to the source object
o.name = 'Susan';
o.number = 43;
o.number = undefined;
o.cars[0].make = 'Holden';
o.cars.push({
make: 'BMW',
model: 'M3'
});
// o and o2 should be equal
expect(o2).to.deep.equals(o);
var observejs = require('observerjs');
Watch the object src for any changes. Returns a stream which can be used
with observerjs.changes(dest) to keep another object in sync.
Stop watching the object src.
Stream which takes the data from an observerjs.observer(src) and keeps
the target object dest in sync with the source.
FAQs
Watch a Javascript object for changes and stream changes to another object
We found that observejs 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.