Skip to content

tungyao/twng

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published