@xan105/vanilla-router
Version:
Simple and modern Vanilla JS router based on the Navigation API and URLPattern API
69 lines (68 loc) • 1.84 kB
JSON
{
"name": "@xan105/vanilla-router",
"version": "1.0.0",
"description": "Simple and modern Vanilla JS router based on the Navigation API and URLPattern API",
"type": "module",
"exports": "./lib/index.js",
"browser": "./dist/router.min.js",
"files": [
"/dist",
"/lib"
],
"config": {
"404": "test/404.html",
"root": "./"
},
"scripts": {
"lint": "eslint \"./lib/**/*.js\"",
"bundle": "npm run-script bundle:pretty && npm run-script bundle:min",
"bundle:pretty": "esbuild \"./lib/index.js\" --bundle --platform=browser --target=esnext --format=esm --outfile=\"./dist/router.js\"",
"bundle:min": "esbuild \"./lib/index.js\" --bundle --minify --legal-comments=none --platform=browser --target=esnext --format=esm --outfile=\"./dist/router.min.js\"",
"test": "start http://localhost/test && websrv"
},
"keywords": [
"router",
"VanillaJS",
"navigation",
"URLPattern",
"spa",
"browser",
"esbuild",
"OpenGraph"
],
"author": {
"name": "Anthony Beaumont",
"email": "dev.xan105@outlook.be",
"url": "https://xan105.com/"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/xan105/web-vanilla-router.git"
},
"bugs": {
"url": "https://github.com/xan105/web-vanilla-router/issues"
},
"homepage": "https://github.com/xan105/web-vanilla-router#readme",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/xan105"
},
{
"type": "paypal",
"url": "https://www.paypal.me/xan105"
},
{
"type": "patreon",
"url": "https://www.patreon.com/xan105"
}
],
"devDependencies": {
"@eslint/js": "^9.39.1",
"@xan105/qwebsrv": "^1.1.0",
"esbuild": "^0.27.0",
"eslint": "^9.39.1",
"globals": "^16.5.0"
}
}