{"name":"read-yaml","description":"Very thin wrapper around js-yaml for directly reading in YAML files.","version":"1.1.0","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"}],"contributors":[{"name":"Jon Schlinkert","email":"jon.schlinkert@sellside.com","url":"http://twitter.com/jonschlinkert"},{"name":"Shinnosuke Watanabe","email":"snnskwtnb@gmail.com","url":"https://shinnn.github.io"}],"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/read-yaml.git"},"bugs":{"url":"https://github.com/jonschlinkert/read-yaml/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.1","js-yaml":"^3.8.2"},"devDependencies":{"gulp-format-md":"^0.1.11","mocha":"^3.2.0","should":"^11.2.0"},"keywords":["async","data","file","fs","parse","read","sync","yaml","yml"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["copy","read-data","write"]},"lint":{"reflinks":true}},"gitHead":"5298d74ebac0949bd91f31f2ae84b0080637e91a","_id":"read-yaml@1.1.0","_shasum":"0d273ac0c95be92230dc0d4c4c4f5b8960a336d6","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.3","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"dist":{"shasum":"0d273ac0c95be92230dc0d4c4c4f5b8960a336d6","tarball":"http://registry-npm.ywwl.com/read-yaml/download/read-yaml-1.1.0.tgz","integrity":"sha512-bDA8pyfGurfEHlgy/wm4vPmcCNW4QPsf86u9JvOixYWc8YD2O985hmZwZrBlzfvf/J4vKGTOWq/CThixACPRPA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH38IeG1lVPTZbjfoRt+jHPL/z3Nh+byWfIz7O/3kQnVAiBP2mr+0+gb/cOTPmmfmrSUPwcnZXwAil70ItTjtnJKyg=="}],"size":3002,"noattachment":false,"key":"/read-yaml/-/read-yaml-1.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/read-yaml-1.1.0.tgz_1491168023600_0.5856852936558425"},"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":1491168024204,"_cnpm_publish_time":1491168024204,"dist-tags":{"latest":"1.1.0"}}