0.0.1 • Published 7 years ago

koahub-router v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

Introduce

The complete solution for node.js command-line programs with router

Usage

const Router = require("koahub-router");
const router = new Router();

router.use("--registry :registry", async (ctx, next) => {
	console.log(1);
	await next();
});
router.use("--registry :registry", async (ctx, next) => {
	console.log(2);
});

router.parse(process.argv);