
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
This is a simple implementation of router by using Trie data structure at core. It has a basic param feature for example the following code are valid.
This is a simple implementation of router by using Trie data structure at core. It has a basic param feature for example the following code are valid.
/users/:id
/users/:id/friends
here's an example code:
var route = require('trie-route');
var router = route.create();
router.path('/users/:id', function (params) {
console.log('this is /users/:id path');
console.log("here's the list of params", params);
});
router.path('/users/:id/friends', function (params) {
console.log('this is /users/:id/friends path');
console.log("here's the list of params", params);
});
var error = router.process('/users/14');
console.log('error:', error);
error = router.process('/users/14/enemies');
console.log('error:', error);
router.process(path, opt)
. opt
will be pass to callback as 3rd argument.FAQs
This is a simple implementation of router by using Trie data structure at core. It has a basic param feature for example the following code are valid.
The npm package trie-route receives a total of 0 weekly downloads. As such, trie-route popularity was classified as not popular.
We found that trie-route 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.