
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
bencmbrook-typescript-template
Advanced tools
Starter template for TypeScript projects. Using tsx, Node 22, ESLint, Prettier.
Publishable Node modules (from src/index.ts
) and a CLI (from src/bin/cli.mts
) which is runnable via npx.
The only dependency is zod
(you can remove it) and consola
(for the CLI). Check out extra boilerplate for other common modifications.
import { sayHello } from 'todo';
sayHello({
message: 'world!',
});
$ npx todo
Hello world!
pnpm install
pnpm start
pnpm publish
This runs lint, test, and build before publishing.
pnpm remove zod
rm src/helpers/validation.ts
pnpm remove consola
rm -rf src/bin
Edit package.json
:
- "bin": "./dist/esm/bin/cli.mjs",
"files": [
"dist",
"src",
- "bin"
],
"scripts": {
"dev": "tsx --watch src/index.ts",
- "cli": "tsx src/bin/cli.mts",
- "build": "tshy && echo '#!/usr/bin/env node --input-type=module\n'\"$(cat ./dist/esm/bin/cli.mjs)\" > ./dist/esm/bin/cli.mjs",
+ "build": "tshy",
FAQs
TODO
The npm package bencmbrook-typescript-template receives a total of 0 weekly downloads. As such, bencmbrook-typescript-template popularity was classified as not popular.
We found that bencmbrook-typescript-template demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
/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.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.