
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
Obi is a simple object builder that allows you to compose objects together with immutability.
AKA Obi will build an object out of other objects without altering the object references you gave it.
It also does its best to deeply clone an object. See lodash's cloneDeep method for more details.
You use Obi by requiring the obi module
var obi = require('obi');
either give obi an object to wrap or just invoke obi.
obi will use an empty object by default.
The cool part here is that obi will return an method to keep extending the object.
obi() or obi({foo: 'foo'}) will return the extend and done methods for the object state.
if you want to keep building on top of that object, use extend to immutably extend the object. The cool part is obi will recursively return new obi objects while cloning the object you pass in.
obj = obi()
obj.extend({foo: 'foo'}) # => obi({foo: 'foo'})
once you're done extending the object you created with obi, use done to return the final object
obj = obi()
obj.extend({foo: 'foo'}).extend({bar: 'bar'}).done() # => {foo: 'foo', bar: 'bar'}
FAQs
a simple object builder with immutability
The npm package obi receives a total of 4 weekly downloads. As such, obi popularity was classified as not popular.
We found that obi 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.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.