{"name":"write-yaml","description":"Write YAML. Converts JSON to YAML writes it to the specified file.","version":"1.0.0","homepage":"https://github.com/jonschlinkert/write-yaml","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"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/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":"^2.0.1","js-yaml":"^3.8.3","write":"^0.3.3"},"devDependencies":{"gulp-format-md":"^0.1.12","mocha":"^3.2.0","read-yaml":"^1.1.0","should":"^11.2.1"},"keywords":["data","format","json","read","write","yaml"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["read-data","read-yaml","write-data","write-json"]},"lint":{"reflinks":true}},"gitHead":"cc7a6b31b7abd277dd96e97f62c70d7a10a3f38e","_id":"write-yaml@1.0.0","_shasum":"314596119d0db91247cbc835bce0033b6e0ba09e","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.3","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"dist":{"shasum":"314596119d0db91247cbc835bce0033b6e0ba09e","tarball":"http://registry-npm.ywwl.com/write-yaml/download/write-yaml-1.0.0.tgz","integrity":"sha512-QFB0QwNlUTSsICNb1HV+822MvFpTC1gtKcOfm0B9oqz4qOQXbRuMSxWPWryTEFBEZDWbI5zXabXArvShXTdLiA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFCVHjv06aGTFf5bj0mIS35VAeJlEbXuOncuq80l2xLEAiEAoqhQugKlWNMQ7hzbfx/STfAi69nSYXz/adLh1R6fezE="}],"size":3146,"noattachment":false,"key":"/write-yaml/-/write-yaml-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/write-yaml-1.0.0.tgz_1492053962488_0.13878568983636796"},"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":1492053963059,"_cnpm_publish_time":1492053963059,"dist-tags":{"latest":"1.0.0"}}