{"name":"@pnpm/modules-yaml","version":"13.1.0","keywords":["pnpm9","pnpm","modules.yaml"],"license":"MIT","_id":"@pnpm/modules-yaml@13.1.0","homepage":"https://github.com/pnpm/pnpm/blob/main/pkg-manager/modules-yaml#readme","bugs":{"url":"https://github.com/pnpm/pnpm/issues"},"dist":{"shasum":"db8fdf4c143deb3f3ec8d11b094a95b40a38d28e","tarball":"http://registry-npm.ywwl.com/@pnpm/modules-yaml/download/@pnpm/modules-yaml-13.1.0.tgz","fileCount":6,"integrity":"sha512-5mf4F+rlzuKkIRlh3EQS6q3bqUOCgHtc9NCpFOHIkaibUteGLdneoMkoPahY9KTfa4flqx9CBbvGvHW1NPrSUg==","signatures":[{"sig":"MEYCIQDq42W2clKsR3+vFmJgu0slkxZ621VqekYE9mOwclRLmgIhAN40CJSvGm5N5rICHIUfj0fnd2OqiLjfyR4AOo4Jeh8O","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12179,"size":4311,"noattachment":false,"key":"/@pnpm/modules-yaml/-/@pnpm/modules-yaml-13.1.0.tgz"},"main":"lib/index.js","_from":"file:pnpm-modules-yaml-13.1.0.tgz","types":"lib/index.d.ts","engines":{"node":">=18.12"},"exports":{".":"./lib/index.js"},"funding":"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":"tsc --build && pnpm run lint --fix"},"_npmUser":{"name":"pnpmuser","email":"publish-bot@pnpm.io"},"_resolved":"/tmp/bde7a3615d2d27d336a5791f3d6d36d4/pnpm-modules-yaml-13.1.0.tgz","_integrity":"sha512-5mf4F+rlzuKkIRlh3EQS6q3bqUOCgHtc9NCpFOHIkaibUteGLdneoMkoPahY9KTfa4flqx9CBbvGvHW1NPrSUg==","repository":{"url":"https://github.com/pnpm/pnpm/blob/main/pkg-manager/modules-yaml","type":"git"},"_npmVersion":"10.5.0","description":"Reads/writes `node_modules/.modules.yaml`","directories":{},"_nodeVersion":"18.20.2","dependencies":{"ramda":"npm:@pnpm/ramda@0.28.1","is-windows":"^1.0.2","@pnpm/types":"10.0.0","read-yaml-file":"^2.1.0","write-yaml-file":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tempy":"^1.0.1","@types/ramda":"0.29.12","@types/is-windows":"^1.0.2","@pnpm/modules-yaml":"13.1.0"},"_npmOperationalInternal":{"tmp":"tmp/modules-yaml_13.1.0_1714399572110_0.9763431465090238","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":1714399572279,"maintainers":[{"name":"pnpmuser","email":"publish-bot@pnpm.io"},{"name":"zkochan","email":"z@kochan.io"}],"_cnpm_publish_time":1714399572279,"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"}}