` tags. routes.js

routes.js

A lightweight JavaScript routing library for modern web applications.

Get Started

Features

  • Simple and intuitive API
  • Supports client-side and server-side rendering
  • Compatible with modern front-end frameworks
  • Lightweight and optimized for performance
  • Extensive documentation and examples

Getting Started

To start using routes.js, simply include it in your project and define your routes.

npm install routes.js

Route Configuration Example

const routes = {
 '/': () => console.log('Home page'),
 '/about': () => console.log('About page'),
};

const router = new Router(routes);
router.init();