{"_id":"yaml-or-json","_rev":"511701","name":"yaml-or-json","description":"Requires a yaml or json config file depending on what it finds.","dist-tags":{"latest":"0.2.0"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"time":{"modified":"2021-08-09T14:00:58.000Z","created":"2015-08-30T22:07:56.897Z","0.2.0":"2016-01-10T00:16:13.953Z","0.1.0":"2015-08-30T22:07:56.897Z"},"users":{},"author":{"name":"Zoltan Kochan","email":"zoltan.kochan@gmail.com","url":"http://kochan.io"},"repository":{"type":"git","url":"git+https://github.com/zkochan/yaml-or-json.git"},"versions":{"0.2.0":{"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","size":1845,"noattachment":false,"key":"/yaml-or-json/-/yaml-or-json-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/yaml-or-json/download/yaml-or-json-0.2.0.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"directories":{},"publish_time":1452384973953,"_cnpm_publish_time":1452384973953,"_hasShrinkwrap":false},"0.1.0":{"name":"yaml-or-json","version":"0.1.0","description":"Requires a yaml or json config file depending on what it finds.","main":"index.js","scripts":{"test":"mocha test/**/*.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"},"devDependencies":{"chai":"^3.2.0","mocha":"^2.2.5"},"gitHead":"036d8ee3d99335d0f725bfb359d20096f07ed053","_id":"yaml-or-json@0.1.0","_shasum":"7034b1fdbe0a3dee56fc6ff9b43ba5c410799338","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"},"dist":{"shasum":"7034b1fdbe0a3dee56fc6ff9b43ba5c410799338","size":7281,"noattachment":false,"key":"/yaml-or-json/-/yaml-or-json-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/yaml-or-json/download/yaml-or-json-0.1.0.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"directories":{},"publish_time":1440972476897,"_cnpm_publish_time":1440972476897,"_hasShrinkwrap":false}},"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","_attachments":{},"homepage":"https://github.com/zkochan/yaml-or-json#readme","bugs":{"url":"https://github.com/zkochan/yaml-or-json/issues"},"license":"MIT"}