{"name":"load-yaml-file","version":"0.1.0","license":"MIT","repository":{"type":"git","url":"git+https://github.com/linusu/load-yaml-file.git"},"engines":{"node":">=4"},"scripts":{"test":"standard && mocha"},"dependencies":{"graceful-fs":"^4.1.5","js-yaml":"^3.6.1","pify":"^2.3.0","strip-bom":"^3.0.0"},"devDependencies":{"mocha":"^3.0.2","standard":"^7.1.2"},"gitHead":"47c35e0aece658ec2c01f2d950037208295769ff","description":"Read and parse a YAML file.","bugs":{"url":"https://github.com/linusu/load-yaml-file/issues"},"homepage":"https://github.com/linusu/load-yaml-file#readme","_id":"load-yaml-file@0.1.0","_shasum":"f680066e691b3eeb45017672e4a3956af5b83b89","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"linusu","email":"linus@folkdatorn.se"},"dist":{"shasum":"f680066e691b3eeb45017672e4a3956af5b83b89","tarball":"http://registry-npm.ywwl.com/load-yaml-file/download/load-yaml-file-0.1.0.tgz","integrity":"sha512-eXl0iea9cwDxq7d6xsEcaBDyceTX/Y9U1kbulTP0RBAz4srF2wZuXS7muLXe16vK9/DC9Z2RIQbeV6bPtjCPYA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEW2uix10WULpXtt+OFbbRfsPDiaCiBNQYqBFuyDjrM+AiEA8SAKSz8DBInc3ca1a92n+/bkVo0awwihCQ0MeFK4ayo="}],"size":1017,"noattachment":false,"key":"/load-yaml-file/-/load-yaml-file-0.1.0.tgz"},"maintainers":[{"name":"linusu","email":"linus@folkdatorn.se"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/load-yaml-file-0.1.0.tgz_1470859393923_0.40118847601115704"},"directories":{},"readme":"# Load YAML file\n\nRead and parse a YAML file.\n\n## Installation\n\n```sh\nnpm install --save load-yaml-file\n```\n\n## Usage\n\n```js\nimport { loadYamlFile } from 'load-yaml-file'\n\nconst data = await loadYamlFile('foo.yml')\nconsole.log(data)\n//=> {foo: true}\n```\n\n### Sync\n\n```js\nimport { loadYamlFileSync } from 'load-yaml-file'\n\nconst data = loadYamlFileSync('foo.yml')\nconsole.log(data)\n//=> {foo: true}\n```\n\n## API\n\n### `loadYamlFile(path)`\n\n- `path` (`string | Buffer | URL`, required)\n- returns `Promise<unknown>` - a promise for the parsed YAML\n\n### `loadYamlFileSync(path)`\n\n- `path` (`string | Buffer | URL`, required)\n- returns `unknown` - the parsed YAML\n\n## Related\n\n- [write-yaml-file](https://github.com/zkochan/write-yaml-file) - Stringify and write YAML to a file atomically\n- [load-json-file](https://github.com/sindresorhus/load-json-file) - Read and parse a JSON file\n","publish_time":1470859394759,"_cnpm_publish_time":1470859394759,"dist-tags":{"latest":"1.0.0"}}