{"_id":"write-yaml","_rev":"60078","name":"write-yaml","description":"Write YAML. Converts JSON to YAML writes it to the specified file.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"time":{"modified":"2021-06-03T10:20:18.000Z","created":"2014-07-19T02:29:19.294Z","1.0.0":"2017-04-13T03:26:03.059Z","0.2.2":"2015-11-17T12:23:21.069Z","0.2.1":"2015-06-18T06:01:13.347Z","0.2.0":"2015-04-07T10:00:48.293Z","0.1.2":"2014-11-06T05:51:41.045Z","0.1.1":"2014-07-19T02:32:53.584Z","0.1.0":"2014-07-19T02:29:19.294Z"},"users":{"erincinci":true,"denji":true,"shangsinian":true},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/write-yaml.git"},"versions":{"1.0.0":{"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","size":3146,"noattachment":false,"key":"/write-yaml/-/write-yaml-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-yaml/download/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":{},"publish_time":1492053963059,"_hasShrinkwrap":false,"_cnpm_publish_time":1492053963059},"0.2.2":{"name":"write-yaml","description":"Write YAML. Converts JSON to YAML writes it to the specified file.","version":"0.2.2","homepage":"https://github.com/jonschlinkert/write-yaml","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"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","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.1","js-yaml":"^3.4.3","lazy-cache":"^0.2.4","write":"^0.2.1"},"devDependencies":{"mocha":"*","read-yaml":"^1.0.0","should":"*"},"keywords":["data","format","json","read","write","yaml"],"verb":{"related":{"list":["plasma","delete","write-json","read-yaml","read-json","read-data"]}},"gitHead":"1ba752e883d1cb12bbbba33c69b1c80a9bb91d19","_id":"write-yaml@0.2.2","_shasum":"106f837a0e9dc0eeb4d22f632405a3d824ced787","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"dist":{"shasum":"106f837a0e9dc0eeb4d22f632405a3d824ced787","size":2962,"noattachment":false,"key":"/write-yaml/-/write-yaml-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-yaml/download/write-yaml-0.2.2.tgz"},"directories":{},"publish_time":1447763001069,"_cnpm_publish_time":1447763001069,"_hasShrinkwrap":false},"0.2.1":{"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","size":2523,"noattachment":false,"key":"/write-yaml/-/write-yaml-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-yaml/download/write-yaml-0.2.1.tgz"},"directories":{},"publish_time":1434607273347,"_cnpm_publish_time":1434607273347,"_hasShrinkwrap":false},"0.2.0":{"name":"write-yaml","description":"Write YAML. Converts JSON to YAML writes it to the specified file.","version":"0.2.0","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":{"type":"MIT","url":"https://github.com/jonschlinkert/write-yaml/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^1.1.2","js-yaml":"^3.2.7","write":"^0.2.0"},"devDependencies":{"mocha":"^2.2.1","read-yaml":"^1.0.0","should":"^5.2.0"},"keywords":["yaml","json","read","write","format","data"],"gitHead":"45b5301ead79f082dbf371c310d6f185debc513c","_id":"write-yaml@0.2.0","_shasum":"30dd1f5af15f28fb618bf5d8065640d3f802a5e6","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"dist":{"shasum":"30dd1f5af15f28fb618bf5d8065640d3f802a5e6","size":2546,"noattachment":false,"key":"/write-yaml/-/write-yaml-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-yaml/download/write-yaml-0.2.0.tgz"},"directories":{},"publish_time":1428400848293,"_cnpm_publish_time":1428400848293,"_hasShrinkwrap":false},"0.1.2":{"name":"write-yaml","description":"Write YAML. Converts JSON to YAML writes it to the specified file.","version":"0.1.2","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"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/write-yaml/blob/master/LICENSE-MIT"}],"keywords":["yaml","json","read","write","format","data"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","read-yaml":"^0.2.0","should":"^4.0.4","verb":"~0.2.6"},"dependencies":{"extend-shallow":"^0.1.1","js-yaml":"^3.2.2","write":"^0.1.1"},"_id":"write-yaml@0.1.2","_shasum":"01d5241efe9d46b88da9e301534689e1faa6816b","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"dist":{"shasum":"01d5241efe9d46b88da9e301534689e1faa6816b","size":3284,"noattachment":false,"key":"/write-yaml/-/write-yaml-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-yaml/download/write-yaml-0.1.2.tgz"},"directories":{},"publish_time":1415253101045,"_cnpm_publish_time":1415253101045,"_hasShrinkwrap":false},"0.1.1":{"name":"write-yaml","description":"Basic node.js utility for converting JSON to YAML and writing formatting YAML files to disk.","version":"0.1.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"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/write-yaml/blob/master/LICENSE-MIT"}],"keywords":["yaml","json","read","write","format","data"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","read-yaml":"^0.2.0","should":"^4.0.4","verb":"~0.2.6","verb-tag-jscomments":"^0.1.2"},"dependencies":{"js-yaml":"^3.0.2","write":"^0.1.1","xtend":"^3.0.0"},"_id":"write-yaml@0.1.1","_shasum":"d36b60e3c19e8c777200af609610a558650ae752","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"dist":{"shasum":"d36b60e3c19e8c777200af609610a558650ae752","size":3468,"noattachment":false,"key":"/write-yaml/-/write-yaml-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-yaml/download/write-yaml-0.1.1.tgz"},"directories":{},"publish_time":1405737173584,"_cnpm_publish_time":1405737173584,"_hasShrinkwrap":false},"0.1.0":{"name":"write-yaml","description":"Basic node.js utility for writing formatted YAML files from JSON.","version":"0.1.0","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"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/write-yaml/blob/master/LICENSE-MIT"}],"keywords":["yaml","json","read","write","format","data"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","read-yaml":"^0.2.0","should":"^4.0.4","verb":"~0.2.6","verb-tag-jscomments":"^0.1.2"},"dependencies":{"js-yaml":"^3.0.2","write":"^0.1.1","xtend":"^3.0.0"},"_id":"write-yaml@0.1.0","_shasum":"2abef64b27b265e7c95d15c8e45e604c66081bd6","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"dist":{"shasum":"2abef64b27b265e7c95d15c8e45e604c66081bd6","size":3463,"noattachment":false,"key":"/write-yaml/-/write-yaml-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-yaml/download/write-yaml-0.1.0.tgz"},"directories":{},"publish_time":1405736959294,"_cnpm_publish_time":1405736959294,"_hasShrinkwrap":false}},"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._","_attachments":{},"homepage":"https://github.com/jonschlinkert/write-yaml","bugs":{"url":"https://github.com/jonschlinkert/write-yaml/issues"},"license":"MIT"}