
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.
@bellisario/icecube
Advanced tools
Create objects that can be freezed and un-freezed
import { IceCube } from '@bellisario/icecube';
const obj = new IceCube({ test: true });
obj.test; // returns true
obj.test = false; // throws an error
obj.iced = false; // disables freezing
obj.test = false; // succeeds
obj.test; // false
Creates a new instance of the IceCube class.
Returns an usable object that can be freezed/un-freezed.
Type: object
The object to be freezed. Can also be an array.
Type: object
Required: false
Initialization options.
Type: boolean
Default: true
If true, the object will be freezed when created.
If false, the object will not be freezed when created and can be edited.
Type: object
The object that can be freezed/un-freezed.
booleaniced optionSince I started learning JavaScript, I noticed that freezing objects will not allow you to un-freeze them later, this is very useful in certain situations, but some others you just want to prevent the user from editing the object now, but allow them to edit it later...
So I created this library to solve this problem.
You can see on the source code of the library that I used Proxy to "watch" the object, then allow editing (or throw an error) by looking for the iced property (which is instead always editable).
We :heart: contributions!
Feel free to open an issue or a pull request but follow Contributing Guidelines.
Tip: if you don't know where to start, check out the help wanted issues!
MIT License here.
Ice Cube original image from vexels.com
FAQs
Create objects that can be freezed and un-freezed
We found that @bellisario/icecube 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.