Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
node-match-path
Advanced tools
node-match-path
Matches a URL against the given path.
npm install node-match-path
const { match } = require('node-match-path')
match('/user/:userId', '/user/5')
/*
{
matches: true,
params: {
userId: '5'
}
}
*/
match(path: RegExp | string, url: string): Match
Returns a match data, if any, between a url and a path.
match('/admin', '/admin')
/*
{
matches: true,
params: null
}
*/
match('/admin/:messageId', '/admin/abc-123')
/*
{
matches: true,
params: {
messageId: 'abc-123'
}
}
*/
match('/user/*/inbox', '/user/abc-123/inbox')
/*
{
matches: true,
params: null
}
*/
match(/\/messages\/.+?\/participants/, '/messages/5/participants')
/*
{
matches: true,
params: null
}
*/
FAQs
Dependency-free request URI matcher
The npm package node-match-path receives a total of 0 weekly downloads. As such, node-match-path popularity was classified as not popular.
We found that node-match-path 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.