Skip to content

paul-go/rawter

Repository files navigation

Rawter

A hierarchial router for RawJS projects.

Installation (Modules)

npm install rawter --save

Installation (No modules)

<script src="https://cdn.jsdelivr.net/npm/rawter/rawter.min.js"></script>

To get TypeScript typings, first do an npm install:

npm install rawter --save-dev

Then add the typings to the include section of your tsconfig.json file:

{
	"compilerOptions": {
		
	},
	"include": [
		"node_modules/rawter/*.ts"
	]
}

Usage

For a complete example, see the Rawter.cover.ts file in the repository.