not quite simple as golang, but at least possible now to package as single executable
Single executable applications | Node.js v19.7.0 Documentation
$ npx postject hello NODE_JS_CODE hello.js \
--sentinel-fuse NODE_JS_FUSE_fce680ab2cc467b6e072b8b5df1996b2