
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.
A programming paradigm combining traits of OOP and ECS.
Install via npm:
npm install ocs
This is a showcase of some of the funcitonality of OCS.
// import ocs
var ocs = require('ocs');
// creates an Environment with the name "env"
var env = new ocs.Environment('env');
// creates a Component "position" that has the properties x and y, and adds it to the Environment "env"
var position = new ocs.Component('env', 'position', (x, y)=>{
return {
x: x,
y: y
}
});
// creates an Entity called "foo", and adds it to the Environment "env"
var foo = new ocs.Entity('env', 'foo');
// adds the "position" Component to foo, and passes 1 to x and 3 to y.
foo.addComponent('position', 1, 3);
// prints: 1
console.log(foo.x);
// removes the "position" Component from foo
foo.removeComponent('position');
// prints: undefined
console.log(foo.x);
// creates a Component "anchor" that has the properties x and y, and adds it to the Environment "env"
var anchor = new ocs.Component('env', 'anchor', (x, y)=>{
return {
anchor: new ocs.EEO({
x: x,
y: y
}, (entity, key, val)=>{
console.log(`The ${key} value of the anchor of ${entity.name} was changed to ${val}`);
});
}
});
// adds the "anchor" Component to foo.
foo.addComponent('anchor', 2, 5);
// changes the value of foo.anchor.x to 4
// logs to the console: "The x value of the anchor of foo was changed to 4"
foo.anchor.x = 4;
All of the documetation is on the OCS website.
FAQs
a programming paradigm combining traits of OOP and ECS
The npm package ocs receives a total of 3 weekly downloads. As such, ocs popularity was classified as not popular.
We found that ocs 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.