node package manager
Stop writing boring code. Discover, share, and reuse within your team. Create a free org »

serve-ify

serve-ify

serve browserify apps using bankai

npm install --save serve-ify

cli

serve-ify src [options]

given:

serve-ify ./client.js --port 4000 --logLevel=debug

api

serveIfy = require('serve-ify')

requestListener = serveIfy(src, options)

given:

returns

const serveIfy = require('serve-ify')
const http = require('http')
const summary = require('server-summary')
 
const src = __dirname + '/client.js'
const requestListener = serveIfy(src)
const server = http.createServer(requestListener)
 
const port = 4000
server.listen(port, summary(server))