{"_id":"json2yaml","_rev":"941845","name":"json2yaml","description":"A commandline utility to convert JSON to YAML / YML","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"coolaj86","email":""}],"time":{"modified":"2021-09-23T02:08:09.000Z","created":"2012-01-30T20:17:44.560Z","1.1.0":"2016-04-19T04:55:58.179Z","1.0.3":"2013-08-02T00:32:25.407Z","1.0.2":"2013-07-28T03:51:49.550Z","1.0.1":"2012-01-31T00:58:07.168Z","1.0.0":"2012-01-30T20:17:44.560Z"},"users":{"hal9zillion":true,"waynedpj":true,"pronin.cc":true,"shamasis":true,"itsmeara":true,"hz_hualuo":true,"knksmith57":true,"russomi":true},"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"http://coolaj86.com"},"repository":{"type":"git","url":"git+https://github.com/coolaj86/json2yaml.git"},"versions":{"1.1.0":{"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"http://coolaj86.com"},"name":"json2yaml","description":"A commandline utility to convert JSON to YAML / YML","keywords":["yml","yaml","json","cli","util"],"version":"1.1.0","license":"Apache-2.0","main":"index.js","repository":{"type":"git","url":"git+https://github.com/coolaj86/json2yaml.git"},"bin":{"json2yaml":"./cli.js","jsontoyaml":"./cli.js","jsontoyml":"./cli.js","json2yml":"./cli.js"},"engines":{"node":">= 0.2.0"},"test":"echo 'error no test'; exit 1","dependencies":{"remedial":"1.x"},"devDependencies":{},"preferGlobal":true,"gitHead":"aecfdcec99eea24d62b2a551b09d6fbaa361f8e1","bugs":{"url":"https://github.com/coolaj86/json2yaml/issues"},"homepage":"https://github.com/coolaj86/json2yaml#readme","_id":"json2yaml@1.1.0","scripts":{},"_shasum":"5414d907f9816586b80c513ec2e3aeb2ab819a6c","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.2","_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"maintainers":[{"name":"coolaj86","email":""}],"dist":{"shasum":"5414d907f9816586b80c513ec2e3aeb2ab819a6c","size":6990,"noattachment":false,"key":"/json2yaml/-/json2yaml-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/json2yaml/download/json2yaml-1.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/json2yaml-1.1.0.tgz_1461041755832_0.38284349953755736"},"directories":{},"publish_time":1461041758179,"_cnpm_publish_time":1461041758179,"_hasShrinkwrap":false},"1.0.3":{"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"http://coolaj86.com"},"name":"json2yaml","description":"A commandline utility to convert JSON to YAML / YML","keywords":["yml","yaml","json","cli","util"],"version":"1.0.3","main":"index.js","repository":{"type":"git","url":"https://github.com/coolaj86/json2yaml.git"},"bin":{"json2yaml":"./cli.js","jsontoyaml":"./cli.js","jsontoyml":"./cli.js","json2yml":"./cli.js"},"engines":{"node":">= 0.2.0"},"test":"echo 'error no test'; exit 1","dependencies":{"remedial":"1.x"},"devDependencies":{},"preferGlobal":true,"readmeFilename":"README.md","bugs":{"url":"https://github.com/coolaj86/json2yaml/issues"},"_id":"json2yaml@1.0.3","dist":{"shasum":"b5c10a781401790cd76756800aa09ff2818e5b6a","size":7239,"noattachment":false,"key":"/json2yaml/-/json2yaml-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/json2yaml/download/json2yaml-1.0.3.tgz"},"_from":"./","_npmVersion":"1.2.32","_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"maintainers":[{"name":"coolaj86","email":""}],"directories":{},"publish_time":1375403545407,"_cnpm_publish_time":1375403545407,"_hasShrinkwrap":false},"1.0.2":{"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"http://coolaj86.com"},"name":"json2yaml","description":"A commandline utility to convert JSON to YAML / YML","keywords":["yml","yaml","json","cli","util"],"version":"1.0.2","main":"index.js","repository":{"type":"git","url":"https://github.com/coolaj86/json2yaml.git"},"bin":{"json2yaml":"./cli.js","jsontoyaml":"./cli.js","jsontoyml":"./cli.js","json2yml":"./cli.js"},"engines":{"node":">= 0.2.0"},"test":"echo 'error no test'; exit 1","dependencies":{"remedial":"1.x"},"devDependencies":{},"preferGlobal":true,"readmeFilename":"README.md","bugs":{"url":"https://github.com/coolaj86/json2yaml/issues"},"_id":"json2yaml@1.0.2","dist":{"shasum":"ac7cd5b5690e860ba416101b1ad1238bc19a59d6","size":7024,"noattachment":false,"key":"/json2yaml/-/json2yaml-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/json2yaml/download/json2yaml-1.0.2.tgz"},"_from":"./","_npmVersion":"1.2.32","_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"maintainers":[{"name":"coolaj86","email":""}],"directories":{},"publish_time":1374983509550,"_cnpm_publish_time":1374983509550,"_hasShrinkwrap":false},"1.0.1":{"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"http://coolaj86.info"},"name":"json2yaml","description":"A commandline utility to convert JSON to YAML / YML","keywords":["yml","yaml","json","cli","util"],"version":"1.0.1","main":"index.js","bin":{"json2yaml":"./cli.js","json2yml":"./cli.js"},"engines":{"node":">= 0.2.0"},"test":["a","b","c"],"dependencies":{"remedial":"1.x"},"devDependencies":{},"preferGlobal":true,"_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"_id":"json2yaml@1.0.1","_engineSupported":true,"_npmVersion":"1.1.0-beta-10","_nodeVersion":"v0.6.7","_defaultsLoaded":true,"dist":{"shasum":"33afae5b683d055c78bc1f158a1f2e110ca94076","size":2946,"noattachment":false,"key":"/json2yaml/-/json2yaml-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/json2yaml/download/json2yaml-1.0.1.tgz"},"maintainers":[{"name":"coolaj86","email":""}],"directories":{},"publish_time":1327971487168,"_cnpm_publish_time":1327971487168,"_hasShrinkwrap":false},"1.0.0":{"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"http://coolaj86.info"},"name":"json2yaml","description":"A commandline utility to convert JSON to YAML / YML","keywords":["yml","yaml","json","cli","util"],"version":"1.0.0","main":"index.js","bin":{"json2yaml":"./cli.js","json2yml":"./cli.js"},"engines":{"node":">= 0.2.0"},"test":["a","b","c"],"dependencies":{"remedial":"1.x"},"devDependencies":{},"preferGlobal":true,"_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"_id":"json2yaml@1.0.0","_engineSupported":true,"_npmVersion":"1.1.0-beta-10","_nodeVersion":"v0.6.7","_defaultsLoaded":true,"dist":{"shasum":"1389d391068937075318807785fbed4139e5e153","size":2940,"noattachment":false,"key":"/json2yaml/-/json2yaml-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/json2yaml/download/json2yaml-1.0.0.tgz"},"maintainers":[{"name":"coolaj86","email":""}],"directories":{},"publish_time":1327954664560,"_cnpm_publish_time":1327954664560,"_hasShrinkwrap":false}},"readme":"json2yaml\n===\n\nA command-line utility to convert JSON to YAML (meaning a `.json` file to a `.yml` file)\n\nThe purpose of this utility is to pretty-print JSON in the human-readable YAML object notation\n(ignore the misnomer, YAML is not a Markup Language at all).\n\nInstallation\n===\n\n```bash\nnpm install -g json2yaml\n```\n\n*Note*: To use `npm` and `json2yaml` you must have installed [NodeJS](http://nodejs.org#download).\n\nUsage\n---\n\nSpecify a file:\n\n```bash\njson2yaml ./example.json > ./example.yml\n\nyaml2json ./example.yml | json2yaml > ./example.yml\n```\n\nOr pipe from stdin:\n\n```bash\ncurl -s http://foobar3000.com/echo/echo.json | json2yaml\n\nwget -qO- http://foobar3000.com/echo/echo.json | json2yaml\n```\n\nOr require:\n\n```javascript\n(function () {\n  \"use strict\";\n\n  var YAML = require('json2yaml')\n    , ymlText\n    ;\n\n    ymlText = YAML.stringify({\n      \"foo\": \"bar\"\n    , \"baz\": \"corge\"\n    });\n\n    console.log(ymlText);\n}());\n```\n\nExample\n===\n\nSo, for all the times you want to turn JSON int YAML (YML):\n\n```javascript\n{ \"foo\": \"bar\"\n, \"baz\": [\n    \"qux\"\n  , \"quxx\"\n  ]\n, \"corge\": null\n, \"grault\": 1\n, \"garply\": true\n, \"waldo\": \"false\"\n, \"fred\": \"undefined\"\n}\n```\n\nbecomes\n\n```yaml\n---\n  foo: \"bar\"\n  baz:\n    - \"qux\"\n    - \"quxx\"\n  corge: null\n  grault: 1\n  garply: true\n  waldo: \"false\"\n  fred: \"undefined\"\n```\n\n*Note*: In fact, both of those Object Notations qualify as YAML\nbecause JSON technically *is* a proper subset of YAML.\nThat is to say that all proper YAML parsers parse proper JSON.\n\nYAML can use either *whitespace and dashes* or *brackets and commas*.\n\nFor human readability, the whitespace-based YAML is preferrable.\nFor compression and computer readability, the JSON syntax of YAML is preferrable.\n\nAlias\n===\n\n`json2yaml` has the following aliases:\n\n  * `jsontoyaml`\n  * `json2yml`\n  * `jsontoyml`\n","_attachments":{},"homepage":"https://github.com/coolaj86/json2yaml#readme","bugs":{"url":"https://github.com/coolaj86/json2yaml/issues"},"license":"Apache-2.0"}