
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.
stack-es2015-modules
Advanced tools
A simple stack data structure provided as es2015 module.
As npm for Node.js:
$ npm install stack-es2015-module --save
Or download the bundle.js file.
$ npm run-script build
creates the bundle.js file in the dist folder.
As npm package:
$ npm test
import Stack from 'stack-es2015-module';
let stack = new Stack();
stack.push(42);
stack.push(17);
stack.top(); // 17
stack.pop();
stack.top(); // 42
stack.withElement(33, () => {
stack.top(); // 33
});
Initializes a new empty Stack.
Returns the top element of the stack.
Pops the top element of the stack.
Pushes the element at the top of the stack.
Pushes the element at the top of the stack and executes the callback with the optional context.
After successfully returning from the callback or upon an uncatched error, the top element is poped from the stack.
MIT
FAQs
The stack data type as es2015 module
The npm package stack-es2015-modules receives a total of 42 weekly downloads. As such, stack-es2015-modules popularity was classified as not popular.
We found that stack-es2015-modules 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.