Join Slack
really don’t know why this isn’t in the standard library… but added `wasmJs` and `wasmWasi` support ...
# webassembly
l
Luca
07/28/2024, 5:59 AM
really don’t know why this isn’t in the standard library… but added
wasmJs
and
wasmWasi
support to my getenv utility library if anyone needs that
https://github.com/luca992/getenv-kt/releases/tag/v0.4.0
l
Leon Kiefer
07/28/2024, 11:28 AM
How do you get env in browser?
l
Luca
07/28/2024, 3:40 PM
Just for node
Luca
07/28/2024, 3:43 PM
You could pollyfill env.process I guess... But is the a use case for that
@Leon Kiefer
l
Leon Kiefer
07/28/2024, 4:03 PM
There are some frontend frameworks which have pollyfills, but it's not recommended
👍 2
l
Luca
07/28/2024, 4:04 PM
Yeah unless someone needs that for some reason I'll probably just leave it for node
👍 1
17
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by