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

1 year ago

7.5.81

1 year ago

7.5.80

1 year ago

7.5.79

1 year ago

7.5.78

1 year ago

7.5.77

1 year ago

7.5.76

1 year ago

7.5.75

1 year ago

7.5.74

1 year ago

7.5.73

1 year ago

7.5.72

1 year ago

7.5.71

1 year ago

7.5.70

1 year ago

7.5.69

1 year ago

7.5.68

1 year ago

7.5.67

1 year ago

7.4.67

1 year ago

7.4.66

1 year ago

7.4.65

1 year ago

7.3.65

1 year ago

7.3.64

1 year ago

7.3.63

1 year ago

7.3.62

1 year ago

7.3.61

1 year ago

7.3.60

1 year ago

7.3.59

1 year ago

7.3.58

1 year ago

7.3.57

1 year ago

7.3.56

1 year ago

7.3.55

1 year ago

7.3.54

1 year ago

7.3.53

1 year ago

7.3.52

1 year ago

7.3.51

1 year ago

7.3.50

1 year ago

7.3.49

1 year ago

6.3.49

1 year ago

6.3.48

1 year ago

6.3.47

1 year ago

5.3.47

1 year ago

5.3.46

1 year ago

5.3.45

1 year ago

5.3.44

1 year ago

5.3.43

1 year ago

5.2.43

1 year ago

5.2.42

1 year ago

5.2.41

1 year ago

5.2.40

1 year ago

5.2.39

1 year ago

5.2.38

1 year ago

5.2.37

1 year ago

5.2.36

1 year ago

5.2.35

1 year ago

5.2.34

1 year ago

5.2.33

1 year ago

5.1.33

1 year ago

5.1.32

1 year ago

5.1.31

1 year ago

4.1.31

1 year ago

4.1.30

1 year ago

4.1.29

1 year ago

4.1.28

1 year ago

4.1.27

1 year ago

4.1.26

1 year ago

4.1.25

1 year ago

4.1.24

1 year ago

4.1.23

1 year ago

4.1.22

1 year ago

4.1.21

1 year ago

4.1.20

1 year ago

4.1.19

1 year ago

4.1.18

1 year ago

4.1.17

1 year ago

4.1.16

1 year ago

4.1.15

1 year ago

4.1.14

1 year ago

4.1.13

1 year ago

4.1.12

1 year ago

4.1.11

1 year ago

4.1.10

1 year ago

4.1.9

1 year ago

4.1.8

1 year ago

4.1.7

1 year ago

4.1.6

1 year ago

4.1.5

1 year ago

4.1.4

1 year ago

4.0.4

1 year ago

4.0.3

1 year ago

4.0.2

1 year ago

3.0.2

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.0.0

1 year ago