{"name":"@pnpm/modules-yaml","version":"12.1.7","keywords":["pnpm8","pnpm","modules.yaml"],"license":"MIT","_id":"@pnpm/modules-yaml@12.1.7","homepage":"https://github.com/pnpm/pnpm/blob/main/pkg-manager/modules-yaml#readme","bugs":{"url":"https://github.com/pnpm/pnpm/issues"},"dist":{"shasum":"c23ffacdc811e034366581424406d4ca9a26138f","tarball":"http://registry-npm.ywwl.com/@pnpm/modules-yaml/download/@pnpm/modules-yaml-12.1.7.tgz","fileCount":6,"integrity":"sha512-+BVpv52inGF6Ro1nLnxprMwYa5y97EwmDN+ZQjhZxPJ5MATPbFS7kSGolSPMHsnbMs83V5wew2Uos3KX7zBxbg==","signatures":[{"sig":"MEYCIQCp1mTuUVWr3Y2qecm2gxapESBNE6eoggxU0SbCD+zlpQIhAJ2yYf7ChaUveQrHZPfwJ0qC2e9y8+HLLv9R2tzSkSaD","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11950,"size":4285,"noattachment":false,"key":"/@pnpm/modules-yaml/-/@pnpm/modules-yaml-12.1.7.tgz"},"main":"lib/index.js","_from":"file:pnpm-modules-yaml-12.1.7.tgz","types":"lib/index.d.ts","engines":{"node":">=16.14"},"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/f94508e007887065e9b649a1df44d5e7/pnpm-modules-yaml-12.1.7.tgz","_integrity":"sha512-+BVpv52inGF6Ro1nLnxprMwYa5y97EwmDN+ZQjhZxPJ5MATPbFS7kSGolSPMHsnbMs83V5wew2Uos3KX7zBxbg==","repository":{"url":"https://github.com/pnpm/pnpm/blob/main/pkg-manager/modules-yaml","type":"git"},"_npmVersion":"10.2.3","description":"Reads/writes `node_modules/.modules.yaml`","directories":{},"_nodeVersion":"18.19.0","dependencies":{"ramda":"npm:@pnpm/ramda@0.28.1","is-windows":"^1.0.2","@pnpm/types":"9.4.2","read-yaml-file":"^2.1.0","write-yaml-file":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tempy":"^1.0.1","@types/ramda":"0.28.20","@types/is-windows":"^1.0.2","@pnpm/modules-yaml":"12.1.7"},"_npmOperationalInternal":{"tmp":"tmp/modules-yaml_12.1.7_1704899131534_0.2955779291817837","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":1704899131701,"maintainers":[{"name":"pnpmuser","email":"publish-bot@pnpm.io"},{"name":"zkochan","email":"z@kochan.io"}],"_cnpm_publish_time":1704899131701,"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"}}