{"name":"read-yaml","description":"Very thin wrapper around js-yaml for directly reading in YAML files.","version":"0.3.1","homepage":"https://github.com/jonschlinkert/read-yaml","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"repository":{"type":"git","url":"git://github.com/jonschlinkert/read-yaml.git"},"bugs":{"url":"https://github.com/jonschlinkert/read-yaml/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/read-yaml/blob/master/LICENSE-MIT"},"files":["index.js","LICENSE-MIT"],"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"dependencies":{"js-yaml":"^3.2.3","xtend":"^4.0.0"},"devDependencies":{"mocha":"*","should":"^4.3.0"},"keywords":["async","data","file","fs","parse","read","sync","yaml","yml"],"gitHead":"667db4e7242fcc2e3a719c102dae7ec8a6c5160b","_id":"read-yaml@0.3.1","_shasum":"8f3c23be91169407810f6a3d73e763c6af50fa55","_from":".","_npmVersion":"2.1.9","_nodeVersion":"0.10.33","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"shasum":"8f3c23be91169407810f6a3d73e763c6af50fa55","tarball":"http://registry-npm.ywwl.com/read-yaml/download/read-yaml-0.3.1.tgz","integrity":"sha512-7+Bk9WwKHgDS+IuCpNEHRhDEfZK+gQIUTxeXGE9WhdIo5IpzszYEifFmDOS3YYVvmqMEDfPf4nmODGbRqt5Row==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDS5u+F6CaRx7kigekBlR0E/15vbnwnj9uh9Ig3avHu7QIhAKjIp+DEpkYI6wlHcRv44ttN7Ashtk4t1tRDPuRIrWAT"}],"size":2344,"noattachment":false,"key":"/read-yaml/-/read-yaml-0.3.1.tgz"},"directories":{},"readme":"# read-yaml [![NPM version](https://img.shields.io/npm/v/read-yaml.svg?style=flat)](https://www.npmjs.com/package/read-yaml) [![NPM monthly downloads](https://img.shields.io/npm/dm/read-yaml.svg?style=flat)](https://npmjs.org/package/read-yaml)  [![NPM total downloads](https://img.shields.io/npm/dt/read-yaml.svg?style=flat)](https://npmjs.org/package/read-yaml) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/read-yaml.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/read-yaml)\n\n> Very thin wrapper around js-yaml for directly reading in YAML files.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save read-yaml\n```\n\n## API\n\n### [readYaml](index.js#L29)\n\nRead yaml file asynchronously and parse content as JSON.\n\n**Params**\n\n* `filepath` **{String}**: Path of the file to read.\n* `options` **{Object|String}**: to pass to [js-yaml](https://github.com/nodeca/js-yaml)\n* `cb` **{Function}**: Callback function `\n\n**Example**\n\n```js\nvar readYaml = require('read-yaml');\nreadYaml('config.yml', function(err, data) {\n  if (err) throw err;\n  console.log(data);\n});\n```\n\n### [.sync](index.js#L69)\n\nRead yaml file synchronously and parse content as JSON.\n\n**Params**\n\n* `filepath` **{String}**: Path of the file to read.\n* `options` **{Object|String}**: to pass to [js-yaml](https://github.com/nodeca/js-yaml).\n* `returns` **{Object}**: JSON\n\n**Example**\n\n```js\nvar read = require('read-yaml');\nvar config = read.sync('config.yml');\n```\n\n## About\n\n### Related projects\n\n* [copy](https://www.npmjs.com/package/copy): Copy files or directories using globs. | [homepage](https://github.com/jonschlinkert/copy \"Copy files or directories using globs.\")\n* [read-data](https://www.npmjs.com/package/read-data): Read JSON or YAML files. | [homepage](https://github.com/jonschlinkert/read-data \"Read JSON or YAML files.\")\n* [write](https://www.npmjs.com/package/write): Write files to disk, creating intermediate directories if they don't exist. | [homepage](https://github.com/jonschlinkert/write \"Write files to disk, creating intermediate directories if they don't exist.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Contributors\n\n| **Commits** | **Contributor** | \n| --- | --- |\n| 15 | [shinnn](https://github.com/shinnn) |\n| 10 | [jonschlinkert](https://github.com/jonschlinkert) |\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.4.3, on April 02, 2017._","publish_time":1417822508405,"_cnpm_publish_time":1417822508405,"dist-tags":{"latest":"1.1.0"}}