UNPKG

@shaun/alpinejs-router

Version:

A lightweight client-side router for Alpine.js that adds declarative routes, link navigation, dynamic params, external templates, and hash or HTML5 history modes without turning your app into a larger framework.

33 lines (32 loc) • 1.15 kB
{ "name": "@shaun/alpinejs-router", "version": "1.3.5", "description": "A lightweight client-side router for Alpine.js that adds declarative routes, link navigation, dynamic params, external templates, and hash or HTML5 history modes without turning your app into a larger framework.", "type": "module", "main": "dist/module.cjs.js", "module": "dist/module.esm.js", "unpkg": "dist/cdn.min.js", "keywords": [ "alpinejs-router", "alpinejs router" ], "scripts": { "test": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js", "bench:router": "node bench/router.bench.js", "build": "vite build --mode module && vite build --mode cdn && vite build --mode cdn-es2015", "build:module": "vite build --mode module", "build:cdn": "vite build --mode cdn", "build:legacy": "vite build --mode cdn-es2015" }, "author": "Shaun Li <shonhen@gmail.com>", "license": "MIT", "homepage": "https://github.com/shaunlee/alpinejs-router", "devDependencies": { "jest-environment-jsdom": "^29.7.0", "jest": "^29.7.0", "vite": "^8.0.0" }, "peerDependencies": { "alpinejs": "^3.0.0" } }