{"name":"write-yaml-file","version":"1.0.0","description":"Stringify and write YAML to a file atomically","main":"index.js","typings":"index.d.ts","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":"zoltan.kochan@gmail.com"},"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":"^2.3.0","write-file-atomic":"^1.3.1"},"devDependencies":{"standard":"^8.6.0"},"_id":"write-yaml-file@1.0.0","gitHead":"abcde922d60646a9a9dc6a7be232149391d03606","_shasum":"7b4bd0df72ca13fbe9d6b0178fd83c077b8ea86b","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.1","_npmUser":{"name":"zkochan","email":"zoltan.kochan@gmail.com"},"dist":{"shasum":"7b4bd0df72ca13fbe9d6b0178fd83c077b8ea86b","tarball":"http://registry-npm.ywwl.com/write-yaml-file/download/write-yaml-file-1.0.0.tgz","integrity":"sha512-JNNeAh0SwQ28zBdXgTV2ywuifnFrUw841Wju89CAa8Eptw6DKN0nYdt0L8r2nkfFtkgORc05WA6jTeEb0a14Uw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC/q9FMwzIoI+BZLjXNqxUHOuywygr6FQAoJZ3ayKpHvAiBJUXaJvBHi3d2MKLNsaTN3+mjnQ+fPb4q4ATRDtKz5DQ=="}],"size":2204,"noattachment":false,"key":"/write-yaml-file/-/write-yaml-file-1.0.0.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/write-yaml-file-1.0.0.tgz_1486859199238_0.5570835948456079"},"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":1486859201108,"_cnpm_publish_time":1486859201108,"dist-tags":{"latest":"6.0.0","next":"4.2.0","pnpm-temp":"4.0.0"}}