{"name":"@pnpm/modules-yaml","version":"13.1.7","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":"12.2.0"},"devDependencies":{"@types/is-windows":"^1.0.2","@types/ramda":"0.29.12","tempy":"^1.0.1","@pnpm/modules-yaml":"13.1.7"},"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.7","_integrity":"sha512-HAYv05xXrud24FXivawes6age54o//DjbBo3nTgisTvm3SGUoLcKtvKejafiGXjWkrTnnx2a0ot1M0APmF/Hxw==","_resolved":"/tmp/2394eb2957c679438bc70e36c90e35ec/pnpm-modules-yaml-13.1.7.tgz","_from":"file:pnpm-modules-yaml-13.1.7.tgz","_nodeVersion":"18.20.4","_npmVersion":"10.7.0","dist":{"integrity":"sha512-HAYv05xXrud24FXivawes6age54o//DjbBo3nTgisTvm3SGUoLcKtvKejafiGXjWkrTnnx2a0ot1M0APmF/Hxw==","shasum":"c8272c4b2c33ed47154ca87516a6a34b16b7f3ff","tarball":"http://registry-npm.ywwl.com/@pnpm/modules-yaml/download/@pnpm/modules-yaml-13.1.7.tgz","fileCount":6,"unpackedSize":12127,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE/mUmT5j7tLPC6m96lOGIke9cuxfAR4+aG45yvVAytCAiAhsWOfSjNLf5/BEaZ647Jfdh1+S3MytZA5nq6FuZX0iw=="}],"size":4366,"noattachment":false,"key":"/@pnpm/modules-yaml/-/@pnpm/modules-yaml-13.1.7.tgz"},"_npmUser":{"name":"pnpmuser","email":"publish-bot@pnpm.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/modules-yaml_13.1.7_1725889974955_0.5693993215929438"},"_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":1725889975149,"maintainers":[{"name":"pnpmuser","email":"publish-bot@pnpm.io"},{"name":"zkochan","email":"z@kochan.io"}],"_cnpm_publish_time":1725889975149,"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"}}