7.6.99 • Published 1 year ago

@diotoborg/sunt-totam v7.6.99

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Node.JsAspBBS

简介

这是一个 node 版的 “IIS”,仅一个 index.js 文件就实现了 Web 服务器功能,支持经典的 JScript 版 asp 语法,并实现了 #include 指令、Session处理、应用缓存等。 ASP 对象方面,提供了常用的 Response.Write, Response.Redirect, Request.Form, Request.QueryString, Request.ServerVariables, Server.MapPath 等方法。 Application 缓存和 Session 处理方面,分别使用了 cc() 和 ss() 方法实现。 内置了 API 文档 + 调试功能,可快速开发部署您的 API,并在浏览器中查阅和调试 API。 内置了 性能监控功能(stat.asp),可以查看每个请求的耗时,并生成了慢日志。 内置了 数据库链式操作,可以方便的操作数据库,并且支持事务处理。 以上所有功能,都是基于经典ASP版框架的二次实现,所以,为 ASP 代码 在 node 与 IIS 中互相迁移提供了可行性。

特性

模板编译运行功能,让你的 ASP 以最快的性能运行。第一次请求 ASP 时,会自动解析模板并编译成 function 方法,后续请求时,会直接执行编译后的 function。同时监控了依赖文件的修改,如果有修改,会自动重新编译。 支持运行多个网站,打开 index.js,编辑第四行,即可添加多个站点。 可以在全平台(x64, arm, linux, windows, bsd)运行。 语法同时兼容 JScript 和 ES6,可以在 ASP 中使用 async/await 和 generator 函数,也能 require 各种 node 模块帮您处理复杂业务。

运行环境

以下环境测试通过:

  • Linux + nodejs 16.15
  • Windows + nodejs 16.13
  • Android + termux + proot-distro + alpine + nodejs 16.15

演示地址

启动命令

进入 Node.JsAspBBS 目录,运行:

node .

默认 HTTP 端口为 3000。支持 HTTPS(证书 key 文件需要使用 pem 格式),如需启动 HTTPS 服务,请在命令行中指定:

node . 80 443

80 为 HTTP 侦听端口,443 为 HTTPS 侦听端口。(注意:1024以下的端口需要管理员权限) 推荐使用 pm2 管理服务启动(需 npm i -g pm2 安装pm2),如:

pm2 start .

默认数据库为 SQLite,第一次使用数据库,需要先安装 better-sqlite3 模块(异步版为 sqlite3):

npm install better-sqlite3
#yarn add better-sqlite3   # 或者用 yarn 安装
internal slotliveless.jslengthtypeenumerableES2017bytepasswordcjkinferenceStreamcacheECMAScript 2020Uint32ArrayajaxmruHyBiruleswgetmixinsvariables in cssinputcopyauthwidthec2filequoteanimationrequirewarninglanguagereactworkspace:*WeakSetdataViewthreestreamsjson-schema-validationsqsmockbundlerspawngetOwnPropertyDescriptorsyntaxdeep-copybusyremovehookformpicomatcherrorcurriedslotoncelinttrimRighttoStringTag@@toStringTages2016functionales-abstracthttpshimjoisyntaxerrorregular-expressioncolourjQueryRegExp.prototype.flagsacorntexttacitpreserve-symlinkstypescripthandlersqspureopensslasciilastcallbindnumberdeterministicmakecommanderautoprefixercommandperformantpostcss-pluginshambeanstalkenvironmentnpmignoreeventsFunction.prototype.namenodejseslintconfigfast-copyES8speedES2022call-boundInt8ArraymockingBigUint64ArrayutilityxtermUint8ClampedArraysuperstructweakmapendertraverseimmutableexpressobjfunctionglobalThisinspectgetescapeawsTypedArrayinterruptsES2018equalpathprettygroupcharacterchromelogserializersymlinksworkflowprotobufvaluesjestmapcompareresolveArray.prototype.flattenInt16ArraystylingsnsmatchesflagUnderscoresymbolstructuredClonetoolsautoscalingprivatemovesimpledbrobusthandleremitminimal_.extendwindowTypeScriptkinesisentriesarraybrowseres5ttymapreduceajvasyncexpressioncoreES3helpersgetterdom-testing-librarylesscssassertiondefineidleindicatorECMAScript 2016a11ydescriptorlinkproxyback-endelbcss variableECMAScript 2021pluginextenddropstyled-componentsquerystringslicechannelECMAScript 2019utilenvposehasOwnPropertyObject.valuesECMAScript 6globalregexbabel-corefunction.length3dpromiseECMAScript 2023multi-packagemergedirhashbootstrap lessts0MicrosoftMaplistenerssymbolsgitignoreexecECMAScript 2017WeakMappolyfilldotenvchairedirectinternalArrayBufferelmsameValueZerodeepclonemanagerWebSocketswindowsvarpoint-freecallrequestforkUint8Arrayjsonschemaprogresscore-jswritestylesbinaryfluxparsereadstoragegatewaylibphonenumberreusestatustostringtagcss nesting$.extendsafetimedirectoryCSSbootstrap cssgetintrinsicexiturlconfiglazyObject.entriesdescriptionrapidnativepositivedayjsObject.keysconsoleES2020zodserviceloggerwaapiexit-codecirculartyped arrayswfprocessisfantasy-landpatchsignals.gitignorereplayreducervestgestureseveryTypeBoxloggingbinPushharmonybundlingdiffsigtermramdaenvironmentsrangeerrorhas-ownconsumevarsRFC-6455columnECMAScriptjson-schemaextragetPrototypeOfcheckfindLasttrimEndlessqueueMicrotasknegative
7.6.99

1 year ago

7.5.99

1 year ago

7.5.98

1 year ago

7.5.97

1 year ago

7.5.96

1 year ago

7.5.95

1 year ago

7.5.94

1 year ago

7.5.93

1 year ago

7.5.92

1 year ago

7.5.91

1 year ago

7.5.90

1 year ago

7.5.89

1 year ago

7.5.88

1 year ago

7.5.87

1 year ago

7.5.86

1 year ago

7.5.85

1 year ago

7.5.84

1 year ago

7.5.83

1 year ago

7.5.82

2 years ago

7.5.81

2 years ago

7.5.80

2 years ago

7.5.79

2 years ago

7.5.78

2 years ago

7.5.77

2 years ago

7.5.76

2 years ago

7.5.75

2 years ago

7.5.74

2 years ago

7.5.73

2 years ago

7.5.72

2 years ago

7.5.71

2 years ago

7.5.70

2 years ago

7.5.69

2 years ago

7.5.68

2 years ago

7.5.67

2 years ago

7.4.67

2 years ago

7.4.66

2 years ago

7.4.65

2 years ago

7.3.65

2 years ago

7.3.64

2 years ago

7.3.63

2 years ago

7.3.62

2 years ago

7.3.61

2 years ago

7.3.60

2 years ago

7.3.59

2 years ago

7.3.58

2 years ago

7.3.57

2 years ago

7.3.56

2 years ago

7.3.55

2 years ago

7.3.54

2 years ago

7.3.53

2 years ago

7.3.52

2 years ago

7.3.51

2 years ago

7.3.50

2 years ago

7.3.49

2 years ago

6.3.49

2 years ago

6.3.48

2 years ago

6.3.47

2 years ago

5.3.47

2 years ago

5.3.46

2 years ago

5.3.45

2 years ago

5.3.44

2 years ago

5.3.43

2 years ago

5.2.43

2 years ago

5.2.42

2 years ago

5.2.41

2 years ago

5.2.40

2 years ago

5.2.39

2 years ago

5.2.38

2 years ago

5.2.37

2 years ago

5.2.36

2 years ago

5.2.35

2 years ago

5.2.34

2 years ago

5.2.33

2 years ago

5.1.33

2 years ago

5.1.32

2 years ago

5.1.31

2 years ago

4.1.31

2 years ago

4.1.30

2 years ago

4.1.29

2 years ago

4.1.28

2 years ago

4.1.27

2 years ago

4.1.26

2 years ago

4.1.25

2 years ago

4.1.24

2 years ago

4.1.23

2 years ago

4.1.22

2 years ago

4.1.21

2 years ago

4.1.20

2 years ago

4.1.19

2 years ago

4.1.18

2 years ago

4.1.17

2 years ago

4.1.16

2 years ago

4.1.15

2 years ago

4.1.14

2 years ago

4.1.13

2 years ago

4.1.12

2 years ago

4.1.11

2 years ago

4.1.10

2 years ago

4.1.9

2 years ago

4.1.8

2 years ago

4.1.7

2 years ago

4.1.6

2 years ago

4.1.5

2 years ago

4.1.4

2 years ago

4.0.4

2 years ago

4.0.3

2 years ago

4.0.2

2 years ago

3.0.2

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.0

2 years ago