Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
express-normalizeurl
Advanced tools
URL normalisation for Express and Connect. Forked form @AntuanKhanna/express-url to serve as (almost) drop-in replacement and to maintain the unmaintained code.
URL normalisation for Express and Connect. Forked from @AntuanKhanna/express-url to serve as an (almost) drop-in replacement (please see Middleware options for that matter) for an unmaintained project.
//assuming default options (see Middleware options)
request: //sLuG??param=val&¶m2=VAL2
response: /slug/?param=val¶m2=VAL2
$ npm install express-normalizeurl
// Require module
// If you used express-url before, this is the only line you need to change
var expurl = require('express-normalizeurl');
// Process routes through middleware
app.use(expurl());
app.use(expurl({
requestType: 'GET',
redirectStatusCode: 302,
lowercase: true,
lowercaseQueries: false, // False by default, requires lowercase to be set to true to work. If you want 100% compatibility with express-url, when lowercase is true, this also needs to be set true
trailingSlash: true,
repeatedSlash: true,
repeatedQuestionMark: true,
repeatedAmpersand: true
}));
$ npm install
$ cd node_modules/express-normalizeurl
$ npm test
app.set('case sensitive routing', true);
app.set('strict routing', true);
FAQs
URL normalisation for Express and Connect. Forked form @AntuanKhanna/express-url to serve as (almost) drop-in replacement and to maintain the unmaintained code.
The npm package express-normalizeurl receives a total of 2 weekly downloads. As such, express-normalizeurl popularity was classified as not popular.
We found that express-normalizeurl 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.