{"name":"@pnpm/modules-yaml","version":"5.0.1","keywords":["pnpm","modules.yaml"],"author":{"url":"https://www.kochan.io/","name":"Zoltan Kochan","email":"z@kochan.io"},"license":"MIT","_id":"@pnpm/modules-yaml@5.0.1","homepage":"https://github.com/pnpm/pnpm/blob/master/packages/modules-yaml#readme","bugs":{"url":"https://github.com/pnpm/pnpm/issues"},"dist":{"shasum":"fefecbabea3436eb6e4af2f77c56c731839df76d","tarball":"http://registry-npm.ywwl.com/@pnpm/modules-yaml/download/@pnpm/modules-yaml-5.0.1.tgz","fileCount":5,"integrity":"sha512-SC0C/WuIpPir5CgvH3QOdieZt3rC0gccI9aWcRTbTyUAFrPcq1qg3k+v+CX8mJwPqhcEgbOcmkm9MNeQnt8YxA==","signatures":[{"sig":"MEYCIQCDhgkF0kL/D0BhiKCi6HZPppGrN5pOan1ZarIVNHWsHAIhAPfti8yP6+bMY9TzsqvD7uiwtwAO0bWcfAADkdtBuxI8","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFOjICRA9TVsSAnZWagAAmsQP/3GuZ3qsgYr63qJ+vj9w\nSrE+TVYg04MiGooKVHvd8WZC/yj4ts+DHsDw68yl6jUoQ82ocPrH9ApiRjJ1\neY4trzD1RJ4EksN3YMawcWKUwTcRdbVPs2MQOTSk9xG6gVQbviHSP1Ih/bfH\nZFLeYrcm4CtIzOHlIGnH9T6zvLfxDXNBEmKi2KsUQ85cZ8McYfcVI46AyRvu\nnvn2Jz+jLfXGW68Sx9qWuXAt/gHafMpKxgOoIba3EzIXtk+oJfS3kRW8CZIu\n3DuQ1ECs//V66atHlUyqtB0vFtC9N1baskALYJftqY8GQfXKYcwjsRSVDtRO\nJ2XDF+YHAbTmCUmhiB13LWtY+0wvpGCRH2c6qLLFLpD/8UVKf03L5gWGCa41\nYFBxSylkJTD/ABYxlbC/OSbyyPfZZxPfnsSP7OUfo+2GhAcno2Zaxh6neJZG\nXxHMvqtZLz3IjNGT8Y0c+f89DI5XRQbezrbB1CJnt6f/gPbGZYHdTmzRI+Wq\nI4f5NgLPpS6T8echibpJltRwCDDUAwq4QHXW0LToziBa8dLAOlS3EAwjEfjz\neozYlM0XNaG/jSwn3JrmgBLyloD8mM1Aexm+TSESfNAJ6qieIcPrRcIRRBuN\ngoO5rIgg5tuVudYA+AoVgc0tS4HlfjDhqmBSW2GLu9yr+4WW1w0cfEaiF/p6\n5Bth\r\n=GJJg\r\n-----END PGP SIGNATURE-----\r\n","size":2540,"noattachment":false,"key":"/@pnpm/modules-yaml/-/@pnpm/modules-yaml-5.0.1.tgz"},"main":"lib/index.js","_from":"packages/modules-yaml","_shasum":"fefecbabea3436eb6e4af2f77c56c731839df76d","engines":{"node":">=10"},"scripts":{"fix":"tslint -c tslint.json src/**/*.ts test/**/*.ts --fix","tsc":"rimraf lib && tsc","lint":"tslint -c ../../tslint.json src/**/*.ts test/**/*.ts","test":"pnpm run tsc && ts-node test --type-check","prepublishOnly":"pnpm run tsc"},"typings":"lib/index.d.ts","_npmUser":{"name":"zkochan","email":"z@kochan.io"},"_resolved":"file:packages/modules-yaml","repository":{"url":"https://github.com/pnpm/pnpm/blob/master/packages/modules-yaml","type":"git"},"_npmVersion":"4.6.1","description":"Reads/writes `node_modules/.modules.yaml`","directories":{},"_nodeVersion":"12.11.0","dependencies":{"@pnpm/types":"5.0.0","read-yaml-file":"1.1.0","write-yaml-file":"3.0.1"},"_hasShrinkwrap":false,"devDependencies":{"tempy":"0.3.0","rimraf":"3.0.0","@pnpm/modules-yaml":"link:"},"_npmOperationalInternal":{"tmp":"tmp/modules-yaml_5.0.1_1578428616436_0.05444895987589682","host":"s3://npm-registry-packages"},"readme":"# @pnpm/modules-yaml\n\n> Reads/writes \\`node_modules/.modules.yaml\\`\n\n<!--@shields('npm')-->\n[![npm version](https://img.shields.io/npm/v/@pnpm/modules-yaml.svg)](https://www.npmjs.com/package/@pnpm/modules-yaml)\n<!--/@-->\n\n## Installation\n\n```sh\npnpm add @pnpm/modules-yaml\n```\n\n## Usage\n\n```ts\nimport {write, read} from '@pnpm/modules-yaml'\n\nawait write('node_modules', {\n  hoistedAliases: {},\n  layoutVersion: 1,\n  packageManager: 'pnpm@1.0.0',\n  pendingBuilds: [],\n  shamefullyFlatten: false,\n  skipped: [],\n  storeDir: '/home/user/.pnpm-store',\n})\n\nconst modulesYaml = await read(`node_modules`)\n```\n\n## API\n\n### `read(pathToDir): Promise<ModulesObject>`\n\nReads `.modules.yaml` from the specified directory.\n\n### `write(pathToDir, ModulesObject): Promise<void>`\n\nWrites a `.modules.yaml` file to the specified directory.\n\n## License\n\nMIT\n","publish_time":1578428616592,"maintainers":[{"name":"pnpmuser","email":"publish-bot@pnpm.io"},{"name":"zkochan","email":"z@kochan.io"}],"_cnpm_publish_time":1578428616592,"dist-tags":{"latest":"1002.0.1","latest-10":"1002.0.2","latest-6":"9.1.2","next":"4.0.0-1","pnpm-temp":"8.0.2"}}