{"name":"yaml-or-json","version":"0.2.0","description":"Requires a yaml or json config file depending on what it finds.","main":"index.js","scripts":{"test":"mocha test/**/*.js"},"files":["index.js"],"repository":{"type":"git","url":"git+https://github.com/zkochan/yaml-or-json.git"},"keywords":["yaml","json","config"],"author":{"name":"Zoltan Kochan","email":"zoltan.kochan@gmail.com","url":"http://kochan.io"},"license":"MIT","bugs":{"url":"https://github.com/zkochan/yaml-or-json/issues"},"homepage":"https://github.com/zkochan/yaml-or-json#readme","publishConfig":{"registry":"http://registry.npmjs.org"},"dependencies":{"js-yaml":"^3.4.0","json5":"^0.4.0"},"devDependencies":{"chai":"^3.2.0","mocha":"^2.2.5"},"gitHead":"619c78e47f66d98c1a142fb922005f0b18ebcf54","_id":"yaml-or-json@0.2.0","_shasum":"610462c6729171f7641c43ef3ab5da34c202d091","_from":".","_npmVersion":"2.14.15","_nodeVersion":"5.4.0","_npmUser":{"name":"zkochan","email":"zoltan.kochan@gmail.com"},"dist":{"shasum":"610462c6729171f7641c43ef3ab5da34c202d091","tarball":"http://registry-npm.ywwl.com/yaml-or-json/download/yaml-or-json-0.2.0.tgz","integrity":"sha512-g6APrR7vUjZRlnWjt5zfRXMI918Ap8MKtas/V5FvWAmG3jYIx4CSMNc2p9GLFMj21tJAbhS0o8v51ICj6aWsZg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA/TOBe86uV+CYVnn57dCiDpBm3rmaPqbO1Vxcv9zwBDAiEAvl787gXQGv+LG+HNdNFkQAa44fkF2L/EQPv5Gn/NmA8="}],"size":1845,"noattachment":false,"key":"/yaml-or-json/-/yaml-or-json-0.2.0.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"readme":"# yaml-or-json\n\nRequires a yaml or json config file depending on what it finds.\n\n[![Dependency Status](https://david-dm.org/zkochan/yaml-or-json/status.svg?style=flat)](https://david-dm.org/zkochan/yaml-or-json)\n[![Build Status](http://img.shields.io/travis/zkochan/yaml-or-json.svg?style=flat)](https://travis-ci.org/zkochan/yaml-or-json)\n[![npm version](https://badge.fury.io/js/yaml-or-json.svg)](http://badge.fury.io/js/yaml-or-json)\n\n\n## Installation\n\n```\nnpm install --save yaml-or-json\n```\n\n\n## Usage\n\n```js\nvar yamlOrJSON = require('yaml-or-json');\n\nvar config = yamlOrJSON(__dirname + '/config/my-config');\nconsole.log(config.someProperty);\n```\n\nThis will read and parse `my-config.yaml` or `my-config.yml` or `my-config.json` from the config\ndirectory, depending which file will be there.\n\n\n## JSON5 is supported!\n\nJSON files are parsed by [JSON5 parser](https://www.npmjs.com/package/json5).\n\n\n## License\n\nThe MIT License (MIT)\n","publish_time":1452384973953,"_cnpm_publish_time":1452384973953,"dist-tags":{"latest":"0.2.0"}}