{"name":"read-metadata","version":"1.0.0","description":"Load a JSON or YAML metadata file as an object","main":"index.js","scripts":{"test":"make test"},"author":{"name":"Anthony Short"},"license":"MIT","dependencies":{"yaml-js":"0.0.8"},"devDependencies":{"should":"~2.1.1","mocha":"~1.17.0"},"gitHead":"722f71b28009634e9007d8f6243e4603df4759ff","_id":"read-metadata@1.0.0","_shasum":"6df9cbe51184e8ceb7d0668b40ee5191e6f3dac6","_from":".","_npmVersion":"1.4.20","_npmUser":{"name":"ianstormtaylor","email":"ian@ianstormtaylor.com"},"maintainers":[{"name":"anthonyshort","email":"antshort@gmail.com"},{"name":"ianstormtaylor","email":"ian@ianstormtaylor.com"},{"name":"segmentio","email":"friends@segment.io"},{"name":"segment","email":"tj@segment.io"}],"dist":{"shasum":"6df9cbe51184e8ceb7d0668b40ee5191e6f3dac6","tarball":"http://registry-npm.ywwl.com/read-metadata/download/read-metadata-1.0.0.tgz","integrity":"sha512-XJdiOrkzOlIac9vXNvgp/4I8qj9EPuHlbf/eoX2rusLFjdKjp0TQ82V3cj+AFjXBzzoZ1TaqAtHnGsR3UdO1Gw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC+MM9WHgM5vY1DdDUY06AYIY+dHvrL1DsdRiFCvH86DQIhAMo6BcmqwgSSwhVorTBJ6DR8sDWybOShBl3GBp+FzIst"}],"size":1673,"noattachment":false,"key":"/read-metadata/-/read-metadata-1.0.0.tgz"},"directories":{},"readme":"[![Build Status](https://circleci.com/gh/segmentio/read-metadata.png?circle-token=c2b4cfaa8e98f46f9ee24fba69609eb790e500f2)](https://circleci.com/gh/segmentio/read-metadata)\n\n# read-metadata\n\nLoad a JSON or YAML metadata file and return it as an object.\n\n## Install\n\n```\nnpm install read-metadata\n```\n\n## Usage\n\nIt handles both JSON and YAML and will return a parsed object.\n\n```\nvar read = require('read-metadata');\n\nread('path/to/metadata.json', function(err, data){\n    console.log(data);\n});\n```\n\n## API\n\n### read(path, callback)\n\nTakes a path to the metadata file. The callback will be called with `fn(err, result)`.\n\n### read.sync(path)\n\nLoad a metafile syncronously.","publish_time":1407884307247,"_cnpm_publish_time":1407884307247,"dist-tags":{"latest":"1.0.0"}}