
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.
iterableobject
Advanced tools
Create an iterable from a JavaScript object.
Normally, you cannot iterate over a JavaScript object. This, for example, will give an error:
var obj = {
first: {
name: 'one',
number: 1
},
second: {
name: 'two',
number: 2
}
};
var iterator = obj[Symbol.iterator](); // throws an error
Using iterableobject, you can create an object that can be iterated over and therefore can be used in for...of loops.
var iterable = require('iterableobject');
var armour = {
helmet: {
name: 'Helmet of the Gods',
description: 'An impressive helmet, believed to have come from another realm.'
},
boots: {
name: 'Steel Shoes',
description: 'A pair of heavy steel shoes. They glisten in the sunlight.'
}
};
for (var part of iterable(armour)) {
console.log(part.name + ": " + part.description);
}
The output of the above example will be the following:
Helmet of the Gods: An impressive helmet, believed to have come from another realm.
Steel Shoes: A pair of heavy steel shoes. They glisten in the sunlight.
You can execute the tests for this project by running npm test.
isiterable and object-equal have been used to make testing easier.
FAQs
Turn an object into an iterable object.
We found that iterableobject 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.