logoalt Hacker News

cobbalyesterday at 2:48 AM2 repliesview on HN

They're not doing so here, but shipping a wasm-compiled binary with npm that uses node's WASI API is a really easy way to ship a cross-platform CLI utility. Just needs ~20 lines of JS wrapping it to set up the args and file system.


Replies

mountainriveryesterday at 2:56 AM

Doesn’t this seem excessive over just using rust’s cross platform builds?

show 1 reply
Lord_Zeroyesterday at 3:13 AM

Can you link to a sample of how I can do this?

show 1 reply