{"name":"write-yaml-file","version":"0.0.0","description":"Stringify and write YAML to a file atomically","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/zkochan/write-yaml-file.git"},"keywords":["write","yaml","stringify","file","fs","graceful","stable","atomic","atomically"],"author":{"name":"Zoltan Kochan"},"license":"MIT","bugs":{"url":"https://github.com/zkochan/write-yaml-file/issues"},"homepage":"https://github.com/zkochan/write-yaml-file#readme","gitHead":"50d56aa4a3cd13d88496d3355a1e48feb7a4b9cd","_id":"write-yaml-file@0.0.0","_shasum":"410259fbe81ce8ce9191f8e697db77c7b3ec39b6","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.1","_npmUser":{"name":"zkochan","email":"zoltan.kochan@gmail.com"},"dist":{"shasum":"410259fbe81ce8ce9191f8e697db77c7b3ec39b6","tarball":"http://registry-npm.ywwl.com/write-yaml-file/download/write-yaml-file-0.0.0.tgz","integrity":"sha512-VuSyA1J2WGAKeke8C2NQGg0M2FkSrC0/D+sfLfIJRX1HEAjRskkOicAczV705Cqq6yqKrP5eJVXxZYj3lsGtLw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGmQ496aYNvH+dTA6gNiIArkBOwrj3StKHfqgf3QIN3WAiAcbk3FdDVHcPLe40hquHPQg+8m4Bpt5r/5w+Jz/jVP5g=="}],"size":1488,"noattachment":false,"key":"/write-yaml-file/-/write-yaml-file-0.0.0.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/write-yaml-file-0.0.0.tgz_1486849395615_0.7547385024372488"},"directories":{},"readme":"# write-yaml-file\n\n> Stringify and write YAML to a file atomically\n\nCreates directories for you as needed.\n\n## Installation\n\n```\n<pnpm|yarn|npm> add write-yaml-file\n```\n\n## Usage\n\n```js\nconst writeYamlFile = require('write-yaml-file')\n\nwriteYamlFile('foo.yaml', {foo: true}).then(() => {\n  console.log('done')\n})\n```\n\n## API\n\n### `writeYamlFile(filepath, data, [options])`\n\nReturns a promise.\n\n### `writeYamlFile.sync(filepath, data, [options])`\n\n#### `options`\n\nSame options that can be passed in to [js-yaml](https://www.npmjs.com/package/js-yaml#safedump-object---options-)\n\n##### mode\n\nType: `number`\nDefault `438` *(0666 in octal)*\n\n[Mode](https://en.wikipedia.org/wiki/File_system_permissions#Numeric_notation) used when writing the file.\n\n#### makeDir\n\nType: `boolean`\nDefault: `true`\n\nCreates the directory to which the YAML file is written.\n\n## Related\n\n- [load-yaml-file](https://github.com/LinusU/load-yaml-file) - Read and parse a YAML file\n\n## License\n\n[MIT](LICENSE) © [Zoltan Kochan](https://www.kochan.io)\n","publish_time":1486849397502,"_cnpm_publish_time":1486849397502,"dist-tags":{"latest":"6.0.0","next":"4.2.0","pnpm-temp":"4.0.0"}}