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

@nebula.js/cli-serve

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.


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

@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]
  --type             Generic object type                                [string]
  --build                                              [boolean] [default: true]
  --host                                                                [string]
  --port                                                                [number]
  --enigma.host                                                         [string]
  --enigma.port                                                  [default: 9076]
  --ACCEPT_EULA, -a                                   [boolean] [default: false]
  -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 20 Jan 2020

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