
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@borrowdev/node
Advanced tools
[!WARNING]
This package is NOT stable yet. There may be breaking changes with every minor release.It is recommended to wait for the 1.0.0 release before using this package in production.
# npm
npm install @borrowdev/node
# pnpm
pnpm add @borrowdev/node
# yarn
yarn add @borrowdev/node
# bun
bun add @borrowdev/node
Let's use the fixed window algorithm to rate limit our login endpoint to 10 requests per minute.
import { borrow } from "@borrowdev/node";
const { success, timeLeft } = await borrow.limiter("my-limiter-id", "current-user-id", {
limiters: [{
maxRequests: 10,
interval: "minute",
type: "fixed",
}]
});
if (!success) {
return { message: "Rate limit exceeded." + timeLeft !== null ? ` You can try again in ${timeLeft} seconds.` : "" };
}
FAQs
<img src="https://jsr.io/badges/@borrow/node" alt="JSR vers
We found that @borrowdev/node demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.