1.3.1 • Published 7 years ago

aspserver v1.3.1

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

一个即拿即用的 NODE 服务器框架,帮助快速搭建一个服务器,并自动拥有目录浏览等功能。

特性

  1. 不同于 Express, AspServer 提供传统的基于文件的服务器构架,用户请求一个 .njs 文件后,该文件代码会执行并输出结果,就像传统的 PHP 和 ASP。
  2. 支持同端口多站点。
  3. 支持扩展插件。

下载安装

> npm install -g aspserver
> aspserver 8080

基本用法

var HttpServer = require('aspserver').HttpServer;

var server = new HttpServer({
    port: 8080,
    physicalPath: "./"
});

server.start();

程序接口

新建一个 hello.njs 并写入:

response.write("hello world");

请求此文件即可查看结果。

1.3.1

7 years ago

1.3.0

7 years ago

1.2.6

7 years ago

1.2.4

7 years ago

1.2.2

7 years ago

1.2.1

8 years ago

1.1.6

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

9 years ago

1.1.0

9 years ago