estrada

0.2.0 • Public • Published

Estrada

Build Status JavaScript Style Guide

Synopsis

Lightweight isomorphic javascript router

NPM

API reference

match(url)

  • url: required url string (for example '/alive')

Return route object or false.

How to use

Create instance Estrada.

const estrada = require('estrada');

const routes = [
    {
        route: '/alive',
        meta: {foo: 'bar'}
    },
    '/user/:user',
    '/user/:user/delete',
];

const router = estrada(routes);
router.match(url);

© Alexander Pokhodyun (Karbunkul) 2017

Readme

Keywords

Package Sidebar

Install

npm i estrada

Weekly Downloads

16

Version

0.2.0

License

MIT

Unpacked Size

7.74 kB

Total Files

6

Last publish

Collaborators

  • karbunkul