kodhework / kawix

The next generation Javascript runtime written in and for nodejs
7 stars 1 forks source link

logo

The next generation Javascript runtime written in and for nodejs. This purpose is give the benefits of an advanced loader, will al the features of current node.js + npm

Notice

@kawix/core development stopped and was replaced by kwruntime. Link: https://github.com/kodhework/kwruntime/core

Install runtime

@kawix/core is available for Windows,Mac,GNU/Linux. Go to INSTALL.md for instructions

Simple example

Run this with kwcore

// serv-example.ts
import Server from 'https://kwx.kodhe.com/x/v/0.8.2/std/http/server'

main()
async function main(){
    const s = new Server()
    s.listen(8081)
    console.log("http://localhost:8081/")
    while(true){
        const env = await s.accept()
        env.reply.send("Hello world!")
    }
}
kwcore serv-example.ts