noob-servers

1.0.1 • Public • Published

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.

Package Sidebar

Install

npm i noob-servers

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

19.5 kB

Total Files

12

Last publish

Collaborators

  • m1by