
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.
js-prototypes
Advanced tools
Important although missing Javascript prototypes
Think there is an important, useful prototype that is missing? Let us know by opening an issue.
The object prototypes can be used on all object extensions.
npm install --save js-prototypesimport JSPrototypes from "js-prototypes"import {ObjectPrototypes, ArrayPrototypes, StringPrototypes} from "js-prototypes"JSPrototypes.all() will add all prototypesObjectPrototypes.all() will add all object prototypesArrayPrototypes.all() will add all array prototypesStringPrototypes.all() will add all string prototypesfalse as the only parametertype.method() where type is the type of prototype, and method is the prototype's name.
ArrayPrototypes.shuffle()| Method | Description |
|---|---|
| clone(obj) | Value level cloning of non-circular objects |
| equals(obj1, obj2) | Checks if value of objects are equal, for non-circular objects |
| forEach(obj, callback(value, key)) | Loops through an object, and executes a callback |
| values(obj) | Converts an object to an array of values. Proposed for ES7 |
| size(obj) | How many properties does an object have |
| Method | Description |
|---|---|
| shuffle() | Shuffles an array |
| top() | Top of the array, without popping |
| unique() | Returns an array of unique values, with no order changes |
| equals(array) | Returns true if both arrays are equal, false if they are not |
| Method | Description |
|---|---|
| capitalize() | Capitalizes a string |
FAQs
Important although missing Javascript prototypes
We found that js-prototypes 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.