
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
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
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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.