
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
$ npm install exec-stack
var ExecStack = require('exec-stack');
var stack = new ExecStack();
stack.push(function(next) {
console.log('This is called for every execution of the stack!');
next();
});
stack.push('event', function(next) {
console.log('This is called whenever `event` is being executed!');
next();
});
stack.execute();
// OUTPUT: This is called for every execution of the stack!
stack.execute('event');
// OUTPUT: This is called for every execution of the stack!
// OUTPUT: This is called whenever `event` is being executed!
Options are passed to the constructor.
If true, only functions subscribed to the executed event are being called by .execute().
Optional arguments are written in cursive.
Push a function on the stack. If event is ommited, the callback will be called for every execution of the stack. Returns the position of the item in the stack.
Removes a specified item from the stack. The item is being referenced by a number representing its position, just like in an array.
Execute the stack in the given context (context is set to an empty object by default).
If callback is a function, it will be called when the stack has finished.
Any other argument that is given to .execute()
will also be passed to the functions in the stack.
FAQs
```javascript $ npm install exec-stack ```
The npm package exec-stack receives a total of 0 weekly downloads. As such, exec-stack popularity was classified as not popular.
We found that exec-stack 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
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.