1.0.1 • Published 6 months ago

noob-servers v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

noob-servers 1.0.0

The simplest way to start a server, suitable for beginners

Installation Method: npm i noob-server

Usage

1. Create a JavaScript file and import the module

const { Server } = require('noob-server');

2. Create a server instance and fill in the required parameters

const server = new Server(path, method, data); // path: port number, method: request method, data: data

3. Call instance methods

server.createServer

Current Issues

1. Can only handle simple GET requests, other request methods are not supported yet.
2. Unable to simulate requests for all addresses under the same port.
3. Unable to start multiple servers simultaneously.
The above issues will be addressed in version 1.1.0.
1.0.1

6 months ago

1.0.0

6 months ago