In case you haven’t seen it, we have (all?) WASI Preview1 APIs implemented in kowasm. Environment variables, for example, are done here.
I’d like to eventually see a KMP API for dealing with environment variables. It is an open question whether it should be in stdlib or some kotlinx library.
gratitude thank you 1
e
Edoardo Luppi
12/23/2023, 1:11 PM
Ah nice! Wasn't aware of that repo, thanks.
Just a pity it's not easily accessible through published artifacts.
Edoardo Luppi
12/23/2023, 1:11 PM
You also have file system APIs 👀 could be useful for kotlinx-io.
Edoardo Luppi
12/23/2023, 1:18 PM
Overall it looks like environment variables could be totally multiplatform. The only target without access seems to be JS/browser.
For native posix can be used on every platform I think.