
Security News
The Code You Didn't Write Is Still Yours to Defend
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.
@rsoram/pp-limit
Advanced tools
Parallel Promise Limiter (pp-limit) 是一个 Promise 并发控制器,可以控制同时进行的任务数量。
// 允许同时运行 5 个任务的并行控制器
const ppl = new PPLimiter(5);
add 函数返回的 Promise 可视作输入的 Promise
const ppl = new PPLimiter(5);
ppl
.add(() => new Promise((resolve) => resolve(1)))
.then((result) => console.log(`${result} == 1`)); // 1 == 1
const ppl = new PPLimiter(5);
const tasks = Array.from(
{ length: 20 },
(_, i) => () => new Promise((resolve) => resolve(i)),
);
await Promise.all(tasks.map((t) => ppl.add(t)));
FAQs
Parallel Promise Limiter (pp-limit) 是一个 Promise 并发控制器,可以控制同时进行的任务数量。
We found that @rsoram/pp-limit 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
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

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.