{"name":"@pnpm/modules-yaml","version":"13.1.3","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.0.0"},"devDependencies":{"@types/is-windows":"^1.0.2","@types/ramda":"0.29.12","tempy":"^1.0.1","@pnpm/modules-yaml":"13.1.3"},"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.3","_integrity":"sha512-mfedmZ4aqMqzepzGWUMCvkL92EPbVuCs4sYDwwv62DJjnACYpCnAFaPHvDmnKxonRHdqeULT+yZhMWKjFBGouw==","_resolved":"/tmp/6daed6080f8745acf2a0dbd9f94b4c1d/pnpm-modules-yaml-13.1.3.tgz","_from":"file:pnpm-modules-yaml-13.1.3.tgz","_nodeVersion":"18.20.3","_npmVersion":"10.7.0","dist":{"integrity":"sha512-mfedmZ4aqMqzepzGWUMCvkL92EPbVuCs4sYDwwv62DJjnACYpCnAFaPHvDmnKxonRHdqeULT+yZhMWKjFBGouw==","shasum":"7e18eecb40bb43a936a638e18494e8e67336f042","tarball":"http://registry-npm.ywwl.com/@pnpm/modules-yaml/download/@pnpm/modules-yaml-13.1.3.tgz","fileCount":6,"unpackedSize":12197,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBDf1k9E3ADsv3Ssg3is2FMIbp0F4Eeg9Rg1SuCNtu5GAiBirpH+rc8F+mdn2fg2AUbMz1+NBCF9Q8jBF6ZZTU3gmQ=="}],"size":4325,"noattachment":false,"key":"/@pnpm/modules-yaml/-/@pnpm/modules-yaml-13.1.3.tgz"},"_npmUser":{"name":"pnpmuser","email":"publish-bot@pnpm.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/modules-yaml_13.1.3_1720101928260_0.18340116427297182"},"_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":1720101928457,"maintainers":[{"name":"pnpmuser","email":"publish-bot@pnpm.io"},{"name":"zkochan","email":"z@kochan.io"}],"_cnpm_publish_time":1720101928457,"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"}}