
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
work-pool은 동시에 여러 작업을 처리하는 데에 유리합니다.
npm install work-pool
const Pool = require('./Pool'); // 모듈 불러오기
const P1 = Pool( 5 ); // 최대 동시 처리 갯수(5개)
P1.work(function (next) {
// 실행할 코드 입력.
next(); // 실행이 끝난 후 next 호출
})
const Pool = require('./Pool');
const P1 = Pool(3);
for (let i = 1 ; i <= 11; i ++) {
P1.work(function(next){
setTimeout(function(){
console.log( new Date().toLocaleTimeString(), i);
next();
}, 1000);
})
}
P1.finish(function () {
console.log('FINISH');
});
n-ui-MacBookPro:work-pool n$ node example.js
5:40:18 PM 1
5:40:18 PM 2
5:40:18 PM 3
5:40:19 PM 4
5:40:19 PM 5
5:40:19 PM 6
5:40:20 PM 7
5:40:20 PM 8
5:40:20 PM 9
5:40:21 PM 10
5:40:21 PM 11
FINISH
FAQs
NodeJS fast work pool
The npm package work-pool receives a total of 3 weekly downloads. As such, work-pool popularity was classified as not popular.
We found that work-pool 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
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.