1.1.14 • Published 26 days ago

node-ts-server v1.1.14

Weekly downloads
-
License
ISC
Repository
-
Last release
26 days ago

Pterosaur Server 后端核心库

node版本 > 16.0.0

安装、初始化

# 创建工程,初始化node项目
mkdir projectName && cd $_ && npm init -y

# 安装模块
npm install node-ts-server -S

# 初始化项目目录
npx nser-cli init

# 添加代码提示块
# npx nser-cli code 

# 编译ts
tsc

#run
node js/Main.js -n test -t test

开始使用

//app.ts

import { Server } from "node-ts-server";  

Server.inst.start();  

启动

node app.js -h
node app.js -n 服务器名称 -t 服务器类型 
node app.js -n 服务器名称 -t 服务器类型 -m 模块1 模块2
参数类型描述
-nstring必选. 服务器名称
-tstring必选. 服务器类型
-m[string]服务器启动模块,可以多个
1.1.14

26 days ago

1.1.13

26 days ago

1.1.12

4 months ago

1.1.11

4 months ago

1.1.10

4 months ago

1.1.9

4 months ago

1.1.8

4 months ago

1.1.7

4 months ago

1.1.6

5 months ago

1.1.5

5 months ago

1.1.4

5 months ago

1.1.3

5 months ago

1.1.2

5 months ago

1.1.1

5 months ago

1.1.0

6 months ago

1.0.9

10 months ago

1.0.8

11 months ago

1.0.7

11 months ago

1.0.6

12 months ago

1.0.5

12 months ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago