0.0.6 • Published 6 years ago

twng v0.0.6

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

twng a lighting async web frame

packge have one pem file and one test file;

test.js

const app = require("twng");
const fs = require("fs");
let server = new app();
server.createSecureServer(
    fs.readFileSync("./localhost-privkey.pem"),
    fs.readFileSync("./localhost-cert.pem"),
);

server.use(async (ctx, next) => {
    ctx.body ="123";
});
server.listen(443);

0.0.6

6 years ago

0.0.7

6 years ago

0.0.8

6 years ago

0.0.9

6 years ago

1.0.0

6 years ago