0.2.0 • Published 6 years ago

estrada v0.2.0

Weekly downloads
6
License
MIT
Repository
github
Last release
6 years ago

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

0.2.0

6 years ago

0.1.0

6 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago