
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.
// npm install express6
import { express } from 'express'
const app = express()
app.get('/', (req, res) => {
res.send('Hello World')
})
app.listen(3000)
I love express and would love to see people using it for at least another 10 years!
This has been take care of 👍
It is ready to be exported as esm, but express6 v1 is all about compatibility with express v4, therefore express6 is ships as commonjs.
I added req.URL
, a short-hand getter for new URL(this.req, `http://${req.headers.host}`)
.
The types are simpler and a bit different than in express v4. For example, all 3 app.use()
below are valid, but express6 throws a type error on the third app.use()
. In the example below, I recommend using the spread operator.
// some middleware
const midi = (req, res, next) => next()
app.get('/', ...[midi, midi], (req, res) => {})
app.get('/', midi, midi, (req, res) => {})
// @ts-ignore
app.get('/', [midi, midi], (req, res) => {})
import type { Request, Response, NextFunction } from 'express6'
// @ts-ignore
app.use((err: any, req: Request, res: Response, next: NextFunction) => {
console.log('ERROR:', err)
return res.send(err)
})
@ts-ignore
tsconfig
Make a PR!
Yes, same as Express v5.
Same as expressjs.
FAQs
🏅 Modern, fast, unopinionated, minimalist web framework.
We found that express6 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.
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.