maxlath / wikibase-cli

read and edit a Wikibase instance from the command line
MIT License
227 stars 24 forks source link

option for yaml output instead of json #35

Closed fuddl closed 5 years ago

fuddl commented 6 years ago

YAML is a is a human friendly data serialization standard. As there is a javascript library for that, it should be easy to implement.

maxlath commented 6 years ago

the lib you linked to seems to be to parse YAML, not to generate YAML from JSON or a js object, do you think that this one would be a acceptable replacement? You need the YAML output just for the readability right?

loominade commented 6 years ago

the lib you linked to seems to be to parse YAML, not to generate YAML from JSON

no, it also serialises into YAML

maxlath commented 6 years ago

how about relying on an external converter like json2yaml?

npm install -g json2yaml
wd data Q123 | json2yaml