Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

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

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages