{"name":"@pnpm/modules-yaml","version":"13.1.4","description":"Reads/writes `node_modules/.modules.yaml`","main":"lib/index.js","types":"lib/index.d.ts","engines":{"node":">=18.12"},"repository":{"type":"git","url":"https://github.com/pnpm/pnpm/blob/main/pkg-manager/modules-yaml"},"keywords":["pnpm9","pnpm","modules.yaml"],"license":"MIT","bugs":{"url":"https://github.com/pnpm/pnpm/issues"},"homepage":"https://github.com/pnpm/pnpm/blob/main/pkg-manager/modules-yaml#readme","dependencies":{"is-windows":"^1.0.2","ramda":"npm:@pnpm/ramda@0.28.1","read-yaml-file":"^2.1.0","write-yaml-file":"^5.0.0","@pnpm/types":"11.1.0"},"devDependencies":{"@types/is-windows":"^1.0.2","@types/ramda":"0.29.12","tempy":"^1.0.1","@pnpm/modules-yaml":"13.1.4"},"funding":"https://opencollective.com/pnpm","exports":{".":"./lib/index.js"},"scripts":{"lint":"eslint \"src/**/*.ts\" \"test/**/*.ts\"","_test":"jest","test":"pnpm run compile && pnpm run _test","fix":"tslint -c tslint.json src/**/*.ts test/**/*.ts --fix","compile":"tsc --build && pnpm run lint --fix"},"_id":"@pnpm/modules-yaml@13.1.4","_integrity":"sha512-fBtHKJnGFxh3JMrzJ9pAJ3Dkjwh8PObytt/Fw8qE6nPHjZsuallHiQNMDaOBhvZeDQMRrwsI0SX0st9K4AX9jw==","_resolved":"/tmp/f50132aff8551f7723b02ba75b9c614b/pnpm-modules-yaml-13.1.4.tgz","_from":"file:pnpm-modules-yaml-13.1.4.tgz","_nodeVersion":"18.20.4","_npmVersion":"10.7.0","dist":{"integrity":"sha512-fBtHKJnGFxh3JMrzJ9pAJ3Dkjwh8PObytt/Fw8qE6nPHjZsuallHiQNMDaOBhvZeDQMRrwsI0SX0st9K4AX9jw==","shasum":"b4f08c58c22b032b168bd1d249da6a3ec50ac03c","tarball":"http://registry-npm.ywwl.com/@pnpm/modules-yaml/download/@pnpm/modules-yaml-13.1.4.tgz","fileCount":6,"unpackedSize":12197,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICRP5VgHX1vjtC8Wg8dvvy80jRAblGxmyEoX7c4Oq9UKAiACt+Yg1ycc6+2l8AJx/PXxEhqFoV28/MIXC7oIKm36vg=="}],"size":4326,"noattachment":false,"key":"/@pnpm/modules-yaml/-/@pnpm/modules-yaml-13.1.4.tgz"},"_npmUser":{"name":"pnpmuser","email":"publish-bot@pnpm.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/modules-yaml_13.1.4_1721605954482_0.11491219966540434"},"_hasShrinkwrap":false,"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":1721605954624,"maintainers":[{"name":"pnpmuser","email":"publish-bot@pnpm.io"},{"name":"zkochan","email":"z@kochan.io"}],"_cnpm_publish_time":1721605954624,"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"}}