jk icon indicating copy to clipboard operation
jk copied to clipboard

comparison to l9t and usage of denojs

Open geekflyer opened this issue 4 years ago • 1 comments

Heyho, one of the things that held me back from using jk was the lack of typescript support and then over time I thought about using deno (which supports) TypeScript out of the box in a jk-like fashion. Turn out at least someone has already thought in this direction: https://github.com/nvbn/l9t.

I was wondering what your thoughts are on basing off jk off deno or make it more deno-like. In particular the way how packages managed (no need for package.json) and that TS is supported out of the box makes its ergonomics a bit nicer.

geekflyer avatar Jul 08 '20 05:07 geekflyer

Yeah, deno is an accomplished project, and supporting TypeScript in jk is quite a big job. I was thinking recently about whether the jk library and commands could be ported to use the deno runtime. One advantage lost is that it was quite easy to add e.g., OpenAPI schema validation to jk because it's just an RPC to call into Go code -- this could be harder with deno, both finding an appropriate library in either Rust or JavaScript, and calling it.

squaremo avatar Mar 18 '21 06:03 squaremo