Skip to main content
The Deno 2 Release Candidate is here
Learn more

ympl

Flatten yaml tree to key-value pairs and substitute environment variables.

NPM version NPM downloads License

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