
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
async-events-listener
Advanced tools
Fork from offical events module
change normal events by using async handler.
Sourtce Code:
const a = new EventEmitter();
a.on('aaa', async () => {
console.log('start:', '1 = ', 'aaa', '->', new Date().getTime());
await new Promise(resolve => setTimeout(resolve, 3000));
console.log('end:', '1 = ', 'aaa', '->', new Date().getTime());
});
a.on('aaa', async () => {
console.log('start:', '2 = ', 'aaa', '->', new Date().getTime());
await new Promise(resolve => setTimeout(resolve, 3000));
console.log('end:', '2 = ', 'aaa', '->', new Date().getTime());
});
a.on('aaa', async () => {
console.log('start:', '3 = ', 'aaa', '->', new Date().getTime());
await new Promise(resolve => setTimeout(resolve, 3000));
console.log('end:', '3 = ', 'aaa', '->', new Date().getTime());
});
(async () => {
await a.emit('aaa');
console.log('all done');
})();
Output:
/**
* @output:
* start: 1 = aaa -> 1487673861652
* end: 1 = aaa -> 1487673864656
* start: 2 = aaa -> 1487673864657
* end: 2 = aaa -> 1487673867663
* start: 3 = aaa -> 1487673867663
* end: 3 = aaa -> 1487673870664
* all done
*
*/
FAQs
async-events-listener
The npm package async-events-listener receives a total of 50 weekly downloads. As such, async-events-listener popularity was classified as not popular.
We found that async-events-listener 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.