Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nebula.js/cli-serve

Package Overview
Dependencies
Maintainers
4
Versions
163
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nebula.js/cli-serve

Basic web development server for supernovas.

  • 0.1.0-alpha.14
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
534
increased by11.25%
Maintainers
4
Weekly downloads
 
Created
Source

@nebula.js/cli-serve

Basic web development server for supernovas.

Install

npm install @nebula.js/cli@next -g

Usage

CLI

nebula serve -h

Dev server

Options:
  --version      Show version number                                   [boolean]
  --entry        File entrypoint                                        [string]
  --build                                              [boolean] [default: true]
  --host                                                                [string]
  --port                                                                [number]
  --enigma.host                                                         [string]
  --enigma.port                                                  [default: 9076]
  -h, --help     Show help                                             [boolean]
Example

Start the server and connect to enigma on port 9077

nebula serve --enigma.port 9077

node.js API

const serve = require('@nebula.js/cli-serve');

serve({
  port: 3000,
  entry: path.resolve(__dirname, 'sn.js') // custom entrypoint
  enigma: {
    port: 9077
  }
}).then(s => {
  s.url; // serve url
  s.close(); // close the server
});

FAQs

Package last updated on 26 May 2019

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc