New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nebula.js/cli-serve

Package Overview
Dependencies
Maintainers
4
Versions
170
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.10
Source
npm
Version published
Weekly downloads
706
-30.51%
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 09 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