Socket
Socket
Sign inDemoInstall

radix3

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

radix3 - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

23

package.json
{
"name": "radix3",
"version": "0.1.0",
"version": "0.1.1",
"description": "Lightweight and fast router for JavaScript based on Radix Tree",

@@ -23,17 +23,22 @@ "repository": "unjs/radix3",

"playground": "yarn jiti ./playground.ts",
"release": "yarn build && standard-version && git push --follow-tags && npm publish",
"test": "nyc --reporter=lcov mocha -r jiti/register tests/*.test.*"
"release": "yarn lint && yarn test run && yarn build && standard-version && git push --follow-tags && npm publish",
"bench": "node ./benchmark/direct.mjs",
"bench:http": "node ./benchmark/http.mjs",
"bench:profile": "0x -o -D benchmark/.profile -- node ./benchmark/direct.mjs",
"test": "vitest"
},
"devDependencies": {
"0x": "latest",
"@nuxtjs/eslint-config-typescript": "latest",
"@types/chai": "latest",
"@types/mocha": "latest",
"chai": "latest",
"autocannon": "latest",
"benchmark": "latest",
"c8": "latest",
"eslint": "latest",
"jiti": "latest",
"mocha": "latest",
"nyc": "latest",
"listhen": "latest",
"ohmyfetch": "latest",
"standard-version": "latest",
"unbuild": "latest"
"unbuild": "latest",
"vitest": "latest"
}
}

@@ -37,3 +37,3 @@

```js
const router createRouter()
const router = createRouter()

@@ -49,6 +49,6 @@ router.insert('/path', { payload: 'this path' })

// { payload: 'this path' }
router.lookup('/test')
router.lookup('/path')
// { payload: 'named route', params: { name: 'fooval' } }
router.lookup('/test/fooval')
router.lookup('/path/fooval')

@@ -82,2 +82,6 @@ // { payload: 'wildcard route' }

## Performance
See [benchmark](./benchmark).
## License

@@ -84,0 +88,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc