
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Impetuous is simple and fast Node.js Router for building web applications.
Impetuous uses Map and the freestyle implementation of Radix Tree for different types of routes. Due to this you achieve very high speed in all cases.
$ npm install impetuous
const http = require('http')
const Impetuous = require('impetuous')
const router = new Impetuous()
// Third handler argument can be, what you want
router.add('GET', '/path', () => {
// Handle something
})
router.add('POST', '/path', () => {
// Handle something
})
// Third handler argument can be, what you want
router.add('DELETE', '/path/:param', [
() => {
// Handle something
},
() => {
// Handle something
}
])
router.find('GET', '/path')
// -> { handler: [Function] }
router.find('GET', '/path/') // <- '/' at the end works
// -> { handler: [Function] }
router.find('POST', '/path')
// -> { handler: [Function] }
router.find('DELETE', '/path/123')
// -> { handler: [[Function, Function]], params: { param: 123 } }
Adds a new handler for the method and path.
Finds the handler for the method and path.
Returns Object with the following fields:
handler: Any what you added
params: Object contains params from path /path/:param <- like this
Library/Framework Dragonrend uses Impetuous as Router. Extension example: class Router
Egor Repnikov - GitHub
This project is licensed under the MIT License - see the LICENSE file for details
FAQs
Incredibly Impetuous Node.js Router
We found that impetuous 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.