{"name":"load-yaml-file","version":"0.1.1","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.13.0","pify":"^2.3.0","strip-bom":"^3.0.0"},"devDependencies":{"mocha":"^3.0.2","standard":"^7.1.2"},"gitHead":"bd0e28586922d563f16f9570685eb2df58f12780","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.1","_nodeVersion":"11.12.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-G910TofXH7u0NfslAzqv6c9pHpvBzObNOo2hMG0/KUDpdHeFY0wE/fTBMExt0Gb12gg5bXS7Hj6pb0e+xbBXLA==","shasum":"dc9b8e89cee96757f6f15a5707ac53f76aa529e9","tarball":"http://registry-npm.ywwl.com/load-yaml-file/download/load-yaml-file-0.1.1.tgz","fileCount":5,"unpackedSize":1773,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcpzKJCRA9TVsSAnZWagAAu+cP/3p9RbVXrraAo2pc8FJs\nzaGUGBnnFfs03+phFuKLA0krZvThkU+e3ax9c/R+fuBfyaEJAsnADVIV29oR\nJ/WApuI8MYiprZtr8A6Ifc5RVqcJwC03yMpQ48HL9qqXYz3kXQ32c6krZ5ZE\nRyIH9mrKKTmfRzz7waR8nDNQ6LK0ut2l65o9/8DxC7r12CgCN3AtA9qT089H\nTbdG9MiTbTgsUeLS6B31q4yi0byNGoGF4ho7a8kVjmvkgVyr8HGx9OociewR\nn8TtjUwuGhA63OUNTQKxhzjZ5BV1wSKZ8hKhHReeyVmEPrMPIGtp+2zuZ0/d\nNvc53+mJhuwXliam+ncDNM9W5KabEuaETq/KI+3tamCHzUnkj9e1zSG60a+A\n8vGA5GD3LhKmwTqo0N4SxYp96VrXCOvQuI3Gws7+13bfHfgRn7cJixxNMhfG\nBqlpLhYZJ8hk8D4D3pRkbBY9JU+KHKXhMfcEnR8EXz03C8uVc4T0e+NPOPV/\nEUXyBcLhyIUrUAtM13OYaKoGtaIOsKiosRJel9zpFZ+BarQzTPJ4sohxFKKI\n73c0NHUmHz6KeZNl1AzhAbZmeD1ElHbNplNzCdcO/LGLaZFVuGM5U13oceK+\nz03RD+gT+AcW2GLMDhDmUKJgh0s1PN6zamRtvomzs8h8NZr9DeNCGJnZXCCv\nByqp\r\n=s/uU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGb+E7XKLTZ0B9pFvO0JwQlNjrp1CcqlZ93dAyiDfGEpAiBsH3cyTub5uuPQXLnreHoD3BWNfwJSKf+p7+2AE76+KQ=="}],"size":986,"noattachment":false,"key":"/load-yaml-file/-/load-yaml-file-0.1.1.tgz"},"maintainers":[{"name":"linusu","email":"linus@folkdatorn.se"}],"_npmUser":{"name":"linusu","email":"linus@folkdatorn.se"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/load-yaml-file_0.1.1_1554461320611_0.5492354742462828"},"_hasShrinkwrap":false,"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":1554461320819,"_cnpm_publish_time":1554461320819,"dist-tags":{"latest":"1.0.0"}}