lib/index.js
function koify() {
	let args = slice.call(arguments);

	let Router;
	let Route;

	if ((args.length === 1) && ('Router' in args[0]) && ('Route' in args[0])) {
		let express = args[0];
		Router =  express.Router;
		Route =  express.Route;
	} else {
		Router =  args[0];
		Route =  args[1];
	}

	if (Router) {
		ko.ifyRouter(Router);
	}

	if (Route) {
		ko.ifyRoute(Route);
	}

	return Router;
}
function koify() {
	let args = slice.call(arguments);

	let Router;
	let Route;

	if ((args.length === 1) && ('Router' in args[0]) && ('Route' in args[0])) {
		let express = args[0];
		Router =  express.Router;
		Route =  express.Route;
	} else {
		Router =  args[0];
		Route =  args[1];
	}

	if (Router) {
		ko.ifyRouter(Router);
	}

	if (Route) {
		ko.ifyRoute(Route);
	}

	return Router;
}
function koify ( ) { let args = slice . call ( arguments ) ; let Router ; let Route ; if ( ( args . length === 1 ) && ( 'Router' in args [ 0 ] ) && ( 'Route' in args [ 0 ] ) ) { let express = args [ 0 ] ; Router = express . Router ; Route = express . Route ; } else { Router = args [ 0 ] ; Route = args [ 1 ] ; } if ( Router ) { ko . ifyRouter ( Router ) ; } if ( Route ) { ko . ifyRoute ( Route ) ; } return Router ; }
Patches Express router
Patches Express router