npm.io
0.1.0 • Published 5 years ago

unter

Licence
MIT
Version
0.1.0
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
1

Universal router (in devepopment)

The usage is really simple so far:

const { Unter } = require('unter');
// or
import { Unter } from 'unter';

const unter = new Unter();
unter.on('/example', (path, ...args) => {
  console.log(path, ...args);
});

unter.dispatch('/example', 1, 2, 3);
/* Console:
  /example 1 2 3
*/

Keywords