{"name":"@pnpm/modules-yaml","version":"9.0.6","keywords":["pnpm6","pnpm","modules.yaml"],"license":"MIT","_id":"@pnpm/modules-yaml@9.0.6","homepage":"https://github.com/pnpm/pnpm/blob/master/packages/modules-yaml#readme","bugs":{"url":"https://github.com/pnpm/pnpm/issues"},"dist":{"shasum":"2f53d1c71a46d3f07db137990f9385665f78ba29","tarball":"http://registry-npm.ywwl.com/@pnpm/modules-yaml/download/@pnpm/modules-yaml-9.0.6.tgz","fileCount":6,"integrity":"sha512-lWbM49SCE+1CzVcQI6b1pl+bzVruXYzgw95t3eRMvs5FWTcraKMRRGSHCXt6jj6EQQg7viMjk8pX9093vxe70Q==","signatures":[{"sig":"MEYCIQCBQOwd9+llI+QTdHdQmCS8DDg9q2ehBZkG2DVugvUoswIhAM4hwZivyoMZGZFu3sG556QUrCPDknbhZN3UTVYz8pFv","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11037,"size":3942,"noattachment":false,"key":"/@pnpm/modules-yaml/-/@pnpm/modules-yaml-9.0.6.tgz"},"main":"lib/index.js","_from":"file:pnpm-modules-yaml-9.0.6.tgz","types":"lib/index.d.ts","engines":{"node":">=12.17"},"funding":{"url":"https://opencollective.com/pnpm"},"scripts":{"fix":"tslint -c tslint.json src/**/*.ts test/**/*.ts --fix","lint":"eslint src/**/*.ts test/**/*.ts","test":"pnpm run compile && pnpm run _test","_test":"jest","compile":"rimraf lib tsconfig.tsbuildinfo && tsc --build && pnpm run lint -- --fix"},"_npmUser":{"name":"pnpmuser","email":"pnpm@kochan.io"},"_resolved":"/home/runner/work/pnpm/pnpm/packages/modules-yaml/pnpm-modules-yaml-9.0.6.tgz","_integrity":"sha512-lWbM49SCE+1CzVcQI6b1pl+bzVruXYzgw95t3eRMvs5FWTcraKMRRGSHCXt6jj6EQQg7viMjk8pX9093vxe70Q==","repository":"https://github.com/pnpm/pnpm/blob/master/packages/modules-yaml","_npmVersion":"7.24.2","description":"Reads/writes `node_modules/.modules.yaml`","directories":{},"_nodeVersion":"14.18.1","dependencies":{"is-windows":"^1.0.2","@pnpm/types":"7.6.0","read-yaml-file":"^2.1.0","write-yaml-file":"^4.2.0"},"_hasShrinkwrap":false,"devDependencies":{"tempy":"^1.0.0","@types/is-windows":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/modules-yaml_9.0.6_1636508934865_0.4309938646253211","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":1636508935068,"maintainers":[{"name":"pnpmuser","email":"publish-bot@pnpm.io"},{"name":"zkochan","email":"z@kochan.io"}],"_cnpm_publish_time":1636508935068,"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"}}