{"name":"write-yaml","description":"Write YAML. Converts JSON to YAML writes it to the specified file.","version":"0.2.1","homepage":"https://github.com/jonschlinkert/write-yaml","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/write-yaml.git"},"bugs":{"url":"https://github.com/jonschlinkert/write-yaml/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^1.1.4","js-yaml":"^3.3.1","write":"^0.2.0"},"devDependencies":{"mocha":"^2.2.5","read-yaml":"^1.0.0","should":"^6.0.3"},"keywords":["yaml","json","read","write","format","data"],"gitHead":"421bf8a64fd2988dd95c7ac7bfd00ce2076ee8c4","_id":"write-yaml@0.2.1","_shasum":"e1875435d0f9ea514e6daa0574e5236b81a72e57","_from":".","_npmVersion":"2.11.2","_nodeVersion":"2.3.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"dist":{"shasum":"e1875435d0f9ea514e6daa0574e5236b81a72e57","tarball":"http://registry-npm.ywwl.com/write-yaml/download/write-yaml-0.2.1.tgz","integrity":"sha512-QdtaORI4SLIULL8Y1ReLIehUFIE+KWnzQY4ONX35uSITo/Jmq6NnVjdGrQyYOi+vIN3yNfVOAwKf0Qg5bZCSFA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAQO0u0h0uRVsiMIcXfGNuUq7wW8z7dXCe5bvjFyzG2ZAiEAoUr2gWJ3N5QLhX8qA/Trw/kaJuoC6L2Reqhs0LN3F5I="}],"size":2523,"noattachment":false,"key":"/write-yaml/-/write-yaml-0.2.1.tgz"},"directories":{},"readme":"# write-yaml [![NPM version](https://img.shields.io/npm/v/write-yaml.svg?style=flat)](https://www.npmjs.com/package/write-yaml) [![NPM monthly downloads](https://img.shields.io/npm/dm/write-yaml.svg?style=flat)](https://npmjs.org/package/write-yaml) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/write-yaml.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/write-yaml)\n\n> Write YAML. Converts JSON to YAML writes it to the specified file.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save write-yaml\n```\n\nInstall with [yarn](https://yarnpkg.com):\n\n```sh\n$ yarn add write-yaml\n```\n\n## Usage\n\nAdd to your javascript/node.js application with the following line of code:\n\n```js\nvar yaml = require('write-yaml');\n```\n\n### async\n\n```js\nvar data = {language: 'node_js', node_js: ['0.10', '0.11']};\n\nyaml('.travis.yml', data, function(err) {\n  // do stuff with err\n});\n```\n\nWould write `.travis.yml` to disk with the following contents:\n\n```yaml\nlanguage: node_js\nnode_js:\n  - \"0.10\"\n  - \"0.11\"\n```\n\n### sync\n\n```js\nyaml.sync('.travis.yml', data);\n```\n\nWould write `.travis.yml` to disk with the following contents:\n\n```yaml\nlanguage: node_js\nnode_js:\n  - \"0.10\"\n  - \"0.11\"\n```\n\n## About\n\n### Related projects\n\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* [read-yaml](https://www.npmjs.com/package/read-yaml): Very thin wrapper around js-yaml for directly reading in YAML files. | [homepage](https://github.com/jonschlinkert/read-yaml \"Very thin wrapper around js-yaml for directly reading in YAML files.\")\n* [write-data](https://www.npmjs.com/package/write-data): Write a YAML or JSON file to disk. Automatically detects the format to write based… [more](https://github.com/jonschlinkert/write-data) | [homepage](https://github.com/jonschlinkert/write-data \"Write a YAML or JSON file to disk. Automatically detects the format to write based on extension. Or pass `ext` on the options.\")\n* [write-json](https://www.npmjs.com/package/write-json): Write a JSON file to disk, also creates intermediate directories in the destination path if… [more](https://github.com/jonschlinkert/write-json) | [homepage](https://github.com/jonschlinkert/write-json \"Write a JSON file to disk, also creates intermediate directories in the destination path if they don't already 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| 12 | [jonschlinkert](https://github.com/jonschlinkert) |\n| 2 | [shinnn](https://github.com/shinnn) |\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.5.0, on April 12, 2017._","publish_time":1434607273347,"_cnpm_publish_time":1434607273347,"dist-tags":{"latest":"1.0.0"}}