{"dist":{"shasum":"58a5ef30efb1c436fe7e1ba49b6cc68308e6a7c4","tarball":"https://registry.npmjs.org/to/-/to-0.2.5.tgz","integrity":"sha512-xYKnc809fEcD5E6T/tLNXMP/xupqbQdXp/3+cO49epfKX8sKEGozZUSNUOSfxLqxmvlVkLbBmLessL/vzrfe5A==","signatures":[{"sig":"MEYCIQDaLQKO1Q1cPBWxaMVuYupG2FT9IN3H6FYDOUj+U90AtQIhAJRUv20Zp4Spa6v2FAA9daTbYIvhMIsN+tbmLB82lbXZ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index","name":"to","author":{"name":"truepattern","email":"admin@truepattern.com"},"readme":"# to.js\ncollection of convertors.\nComes with command line options to use the convertors along with a library version that can be used within programs as well.\n\n# Solves\n  * handling different input/output formats: yaml,json,xml\n  * only input xml is handled (no output xml yet)\n\n## Installation\n\n    $ npm install -g to\n    $ npm install to\n\n## Usage\nWithin program\n\n    var to = require('to');\n    \n    # Load yaml\n    var yamldoc = to.format.yaml.load('config.yaml');\n    \n    # print doc in yaml \n    var doc = ...;\n    console.log(to.format.yaml.stringify(doc));\n\n * refer to examples directory for xml, json, yaml code\n\n## Output\nFor a sample xml\n\n    <?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n    <!DOCTYPE log4j:configuration SYSTEM \"log4j.dtd\">\n    \n    <dummy>\n    <value>15</value>\n    <value>35</value>\n    <value>5</value>\n    <value>4784</value>\n    <value>one more</value>\n    <h>decent</h>\n    <h>list</h>\n    <h>another</h>\n    <object>value</object>\n    <inner>\n      <h1>value</h1>\n      <li>got</li>\n      <li>milk</li>\n    </inner>\n   </dummy>\n\nOutput json\n\n    {\n      \"dummy\": {\n        \"value\": [\n          \"15\",\n          \"35\",\n          \"5\",\n          \"4784\",\n          \"one more\"\n        ],\n        \"h\": [\n          \"decent\",\n          \"list\",\n          \"another\"\n        ],\n        \"object\": \"value\",\n        \"inner\": {\n          \"h1\": \"value\",\n          \"li\": [\n            \"got\",\n            \"milk\"\n          ]\n        }\n      }\n    }\n\nOutput YAML\n\n    dummy:\n      value: ['15', '35', '5', '4784', 'one more']\n      h: [decent, list, another]\n      object: value\n      inner: { h1: value, li: [got, milk] }\n\n## Todo\n * Input html (be forgiving with bad html)\n * Input markdown \n * Output xml\n * Output html\n * add unit tests\n * allow beautification params for all outputs \n\n","engines":{"node":">= 0.5.0"},"scripts":{"prepublish":"npm prune"},"homepage":"https://github.com/truepattern/to","keywords":["converter","convertor","json","xml","yaml"],"repository":{"url":"git://github.com/truepattern/to","type":"git"},"description":"to - convert between formats including xml, json, yaml","directories":{},"maintainers":[{"name":"truepattern","email":"admin@truepattern.com"},{"name":"openmason","email":"openmason@gmail.com"}],"dependencies":{"js-yaml":">= 1.0.2","optimist":">= 0.3.5","htmlparser":">= 1.7.6","underscore":">= 1.4.0"},"devDependencies":{},"_id":"to@0.2.5","version":"0.2.5"}