saghul / txiki.js

A tiny JavaScript runtime
MIT License
2.37k stars 157 forks source link

core: refactor environment variable handling in JS #496

Closed saghul closed 1 month ago

saghul commented 1 month ago

Replace tjs.environ + tjs.getenv + tjs.setenv + tjs.unsetenv with tjs.env, an object which does all of that under the hood.

Ref: https://github.com/wintercg/proposal-cli-api?tab=readme-ov-file#environment-variables