Installation #

FicusJS router can be installed in a number of ways.

CDN #

We recommend using native ES modules in the browser.

<script type="module">
import { createRouter, getRouter } from 'https://cdn.skypack.dev/@ficusjs/router@3'
</script>

FicusJS router is available on Skypack.

NPM #

FicusJS router works nicely with build tools such as Webpack or Rollup. If you are using a NodeJS tool, you can install the NPM package.

npm install @ficusjs/router

Available builds #

FicusJS router is only available as an ES module. For legacy browsers or alternative modules such as CommonJS, it is recommended to use a build tool to transpile the code.

The following builds are available.

  • dist/router.mjs