Socket
Book a DemoInstallSign in
Socket

@braidjs/host

Package Overview
Dependencies
Maintainers
4
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@braidjs/host

A nice way to host Braid apps

1.1.3
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
4
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 31 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.