Neptunium, Promethium, Manganese
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

webstarserver

1.0.1 • Public • Published

WebStarServer

WebStarServer makes HTTPS server by easy.

How to use?

If you dont write some options for cert then, do this.

var wss=require('webstarserver');
wss((req,res)=>{
//req : Request.
//res : Response.
//Do something
});

If you write some options for cert then, do this.

var wss=require('webstarserver');
var opt={
bits:2048, //Bits number. Default is 2048.
country:'JP', //Country name. Default is JP.
state:'Tokyo', //State name. Default is Tokyo.
locality:'Minato-ku', //Locality name. Default is Minato-ku.
orgname:'undefined', //Organization Name. Default is undefined.
orgunit:'undefined', //Organizational Name. Default is undefined.
commname:'undefined' //Common Name. Default is undefined.
}
wss(opt,(req,res)=>{
//req : Request
//res : Response
//Do something
})

Install

npm i webstarserver

DownloadsWeekly Downloads

1

Version

1.0.1

License

CC-BY-ND-4.0

Unpacked Size

2.08 kB

Total Files

4

Last publish

Collaborators

  • avatar