ympl
Flatten yaml tree to key-value pairs and substitute environment variables.
An experiment to distribute cross-platform cli on npm
- written in Golang
- compiled to WASM
- published as npm package
- inspired by esbuild
- works in stackblitz
$ cat a.ympl
config:
env:
HOME: ${HOME}
USER: ${USER}
$ cat a.ympl | npx -y ympl list
/config/env/HOME ${HOME}
/config/env/USER ${USER}
$ cat a.ympl | npx -y ympl eval
/config/env/HOME /home/codespace
/config/env/USER codespace