leviroutes
A basic routes framework for JS that hooks in to HTML5 history
File Explorer
- copilot-instructions.md
- example.html
- page2.html
- index.html
- example.html
- post2.html
- index.html
- middleware-example.html
- index.html
- README.md
- jasmine-html.js
- jasmine.css
- jasmine.js
- json2.js
- dom-helper.mjs
- jasmine.json
- middleware.spec.mjs
- routeexecution.spec.mjs
- routemanagement.spec.mjs
- routeparsing.spec.mjs
- routesframework.spec.mjs
- routes.js
- middleware.js
- routeexection.js
- routemanagement.js
- routeparsing.js
- routesframework.js
- .gitignore
- LICENCE
- package-lock.json
- package.json
- README.md
- SpecRunner.html
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
next
View Details ▼
next
React framework that uses server-side rendering for building optimized web applications.
next dev
Start the current application in development mode:
next dev {{[-p|--port]}} {{port}}
Start the current application and listen on a specific port:
next build
Build the current application optimized for production:
npm install
View Details ▼
npm install
Install Node packages.
npm {{[i|install]}}
Install dependencies listed in `package.json`:
npm {{[i|install]}} {{package_name}}@{{version}}
Download a specific version of a package and add it to the list of dependencies in `package.json`:
npm {{[i|install]}} {{package_name}} {{[-D|--save-dev]}}
Download the latest version of a package and add it to the list of dev dependencies in `package.json`:
npm run
View Details ▼
npm run
Run a script.
npm run
List available scripts:
npm run {{script_name}}
Run a script:
npm run {{script_name}} -- {{argument}} {{--option}}
Pass arguments to a script:
npm test
View Details ▼
npm test
This command is an alias of `npm run test`.
tldr npm run
View documentation for the original command:
script
View Details ▼
script
Record all terminal output to a typescript file.
script
Record a new session to a file named `typescript` in the current directory:
exit
Stop recording:
script {{path/to/session.out}}
Record a new session to a custom filepath:
