Is #javascript module system still schizophrenic? I wanted to reuse some non-#React code from a #CreateReactApp project on the command line. But CRA uses import from .js files, so gotta switch "type" in package.json, but then it turned out some library used XMLHttpRequest, which isn't available from modules (?).
Anyway - what are best practices for #js command line apps? Should I just use #typescript now? If so, same question?
Probably won't reuse code and run python or R instead.