Socket
Socket
Sign inDemoInstall

basic-node-server

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    basic-node-server

Basic node server for everyone.


Version published
Weekly downloads
2
decreased by-80%
Maintainers
1
Install size
46.3 kB
Created
Weekly downloads
 

Readme

Source

basic-node-server

Basic node server for everyone.

Basic node server simply hosts and serves files from the current project directory through HTTP. If no path is given, it will serve the index.html file.

How to use

node bns [port]

The [port] argument is optional. If no port is given, it will default to 3000.

For example, if you want to serve the current directory on port 8080, you would run:

node bns 8080

NPM

This package is also available on NPM. To install it, run:

npm install basic-node-server

Then, you can run it from your project directory:

node node_modules/basic-node-server/bns [port]

FAQs

Last updated on 11 Jan 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc