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

lite-web-server

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lite-web-server - npm Package Compare versions

Comparing version 1.0.2-beta.1633053420 to 1.0.2-beta.1633100820

6

jsdoc.json

@@ -27,3 +27,3 @@ {

"better-docs": {
"name": "lite-web-server Documentation",
"name": "lite-web-server v1.0.2-beta.1633100820",
"title": "lite-web-server Documentation",

@@ -35,2 +35,6 @@ "css": "/style.css",

{
"label": "Top Page",
"href": "https://lite-web-server.js.org/"
},
{
"label": "Github",

@@ -37,0 +41,0 @@ "href": "https://github.com/chasyumen/lite-web-server"

@@ -0,0 +0,0 @@ /**

19

lib/index.js

@@ -7,9 +7,16 @@ const http = require('http');

/**
* Start a WebServer.
* WebServer's options.
* @typedef WebServerOptions
* @type {object}
* @property {object} [options]
* @property {string} [options.directory=./public/] - The directory to load the file.
* @property {string} [options.notfound=default html code] - Html code to respond on not found.
* @property {Number} [options.port=3000] - Port to host the page.
*/
/**
* Create a WebServer.
* @constructor
* @param {Object} [options] - WebServer Options.
* @param {string} [options.directory=./public/] - The directory to load the file.
* @param {string} [options.notfound] - Html code to respond on not found.
* @param {Number} [options.port=3000] - Port to host the page.
* @returns {boolean}
* @param {WebServerOptions} [options] - WebServer Options.
* @returns {WebServer}
*/

@@ -16,0 +23,0 @@

{
"name": "lite-web-server",
"version": "1.0.2-beta.1633053420",
"version": "1.0.2-beta.1633100820",
"description": "creates simple web server.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -0,0 +0,0 @@ # lite-web-server

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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