MAML CLI tool. Pretty-print and query MAML files.
npm i -g mx
Or run directly:
npx mx data.maml
mx [file] [query]
Pipe or pass a file:
cat data.maml | mx
mx data.mamlQuery nested data with dot notation:
mx data.maml .users[0].name
cat data.maml | mx .config.server.port.prop access property
.prop.nested nested access
.[0] array index
.items[2].name mixed access