Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1.06 KB

README.md

File metadata and controls

39 lines (26 loc) · 1.06 KB

gengo-pack

The default gengo-pack for gengojs

Build Status

This is the default gengo-pack that contains the following plugins:

Usage

	var gengo = require('gengojs');
	var pack = require('gengojs-default-pack');
	
	// In Express (also applies for Koa)	
	var express = require('express');
	var app = express();
	app.use(gengo({/*options*/, pack())};
	
	// ...
	
	
	// In Hapi
	var Hapi = require('hapi');
	var server = Hapi();
	server.connection({ port: 3000});
	server.register(gengo({/*options*/, pack()), function(error){});
		
	// ...