1.1.3 • Published 3 years ago

@braidjs/host v1.1.3

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

host

A nice way to host Braid apps.

Example usage:

var host = require('@braidjs/host')

host.route({ path: '/pub*',  to: host.server('micropub') })
host.route({ path: '/*',     to: host.server('invisible.college') })

console.log('Making the host!')
host.listen(443)

This short-form example assumes you have web servers implemented at ./micropub/server.js and ./invisible.college/server.js, but you can also specify an arbitrary directory and script with:

host.route({ path: <path>, to: host.server('directory', 'server.js') })

Or you can specify an existing server's port with:

host.route({ path: <path>, to: {name: '<some name>', port: <port number>} })
1.1.3

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.2

3 years ago

1.0.0

3 years ago