flatend
flatend copied to clipboard
Add deno port
No ts errors 86 ts errors (down from 200) It's a start!
Anyone that wants to work further on this, go for it!
Biggest blockers are:
- [ ] missing builtin "stream" module for Duplex
- [ ] missing builtin "net" module
- [ ] missing builtin "crypto" module for AES gcm
Tested with: deno run testfile.ts:
import { Node, Context } from '../flatend/deno/src/mod.ts'
await Node.start({
addrs: ['127.0.0.1:6283'],
services: {
hello_world: (ctx: Context) => ctx.send('Hello world!' + Date.now()),
},
})
I don't think I can finish this, it probably makes more sense to rewrite the networking part in idiomatic Deno instead of waiting for the std/node/... to catch up.