1.0.0 • Published 5 years ago

@easyboot/formidable v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

@easyboot/core

npm (scoped)

Introduction

@easyboot/core is a framework for building efficient, scalable Node.js server-side applications. It uses progressive JavaScript, is built with TypeScript (preserves compatibility with pure JavaScript) and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming).

Installation

> yarn add @easyboot/core

or

> npm install @easyboot/core

Server(options: Options)

1. options

  • port?: number;
  • host?: string;
  • keys?: Keygrip | string[];
  • env?: Env;
  • proxy?: boolean; defalut false
  • subdomainOffset?: number; defalut 2
  • silent?: boolean;

Api

  • listen

listen(port?: number, hostname?: string, backlog?: number, listeningListener?: () => void): this; listen(port: number, hostname?: string, listeningListener?: () => void): this; listen(port: number, backlog?: number, listeningListener?: () => void): this; listen(port: number, listeningListener?: () => void): this; listen(path: string, backlog?: number, listeningListener?: () => void): this; listen(path: string, listeningListener?: () => void): this; listen(options: ListenOptions, listeningListener?: () => void): this; listen(handle: any, backlog?: number, listeningListener?: () => void): this; listen(handle: any, listeningListener?: () => void): this;

  • callback return (request: IncomingMessage, response: ServerResponse): this;

Issues

Contribution

License MIT

1.0.0

5 years ago