OYAML is a YAML-like notation syntax for objects with very flexible whitespace. It's relatively human-readable and human-writable, while being compatible with a one-line-per-record data format, much like JSON Lines.
npm install oyaml
const { parse, stringify } = require('oyaml')
const str = 'message:hi "longer message":"Hello there!" number:4.3 list:[a, b, thing:stuff]'
const obj = parse(str)
/**
{
"message": "hi",
"longer message": "Hello there!",
"number": 4.3,
"list": [
"a",
"b",
{
"thing": "stuff"
}
]
}
**/
const oyaml = stringify(obj)
// message:hi "longer message":"Hello there!" number:4.3 list:[a, b, thing:stuff]