{"name":"write-yaml-file","version":"1.0.1","description":"Stringify and write YAML to a file atomically","main":"index.js","typings":"index.d.ts","engines":{"node":">=4"},"files":["index.js","index.d.ts"],"scripts":{"test":"standard"},"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","email":"z@kochan.io"},"license":"MIT","bugs":{"url":"https://github.com/zkochan/write-yaml-file/issues"},"homepage":"https://github.com/zkochan/write-yaml-file#readme","dependencies":{"graceful-fs":"^4.1.11","js-yaml":"^3.8.1","mkdirp":"^0.5.1","pify":"^3.0.0","write-file-atomic":"^2.0.0"},"devDependencies":{"standard":"^11.0.1"},"gitHead":"73cdd5255dfef9ee6227d8d1b7390b95c43c74ea","_id":"write-yaml-file@1.0.1","_shasum":"a1eb1e6babeb89c01034d4ab035c27d4fb77e2a1","_from":".","_npmVersion":"4.6.1","_nodeVersion":"6.11.4","_npmUser":{"name":"zkochan","email":"z@kochan.io"},"dist":{"shasum":"a1eb1e6babeb89c01034d4ab035c27d4fb77e2a1","tarball":"http://registry-npm.ywwl.com/write-yaml-file/download/write-yaml-file-1.0.1.tgz","fileCount":5,"unpackedSize":4174,"integrity":"sha512-Rqofjj5FqghqS3ijG9Yr9byryR5C82MKlcqGVXQFRjLCmXni+iRHYKblOogLDN9vbNyE/BNx4tohkzP8ugMMcw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDRwYK6WgHb6wIGqzGbxnXWpyrrVf/xt2KbYjgMJvefmgIhAPYujqxGxemumpWuOEuiAfEP9XseCTBeGhJ0L9iYeMZA"}],"size":2194,"noattachment":false,"key":"/write-yaml-file/-/write-yaml-file-1.0.1.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/write-yaml-file_1.0.1_1521316471476_0.007788615276082433"},"_hasShrinkwrap":false,"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":1521316471607,"_cnpm_publish_time":1521316471607,"dist-tags":{"latest":"6.0.0","next":"4.2.0","pnpm-temp":"4.0.0"}}