UNPKG

@xan105/vanilla-router

Version:

Simple Vanilla JS router based on the Navigation API and URLPattern API

66 lines (65 loc) 1.75 kB
{ "name": "@xan105/vanilla-router", "version": "0.4.0", "description": "Simple 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", "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": { "@xan105/qwebsrv": "^1.0.5", "esbuild": "^0.19.10", "eslint": "^8.56.0" } }