{"name":"@pnpm/modules-yaml","version":"12.1.3","keywords":["pnpm8","pnpm","modules.yaml"],"license":"MIT","_id":"@pnpm/modules-yaml@12.1.3","homepage":"https://github.com/pnpm/pnpm/blob/main/pkg-manager/modules-yaml#readme","bugs":{"url":"https://github.com/pnpm/pnpm/issues"},"dist":{"shasum":"1942c039f7debbec8bb551ab269acfce799d98b8","tarball":"http://registry-npm.ywwl.com/@pnpm/modules-yaml/download/@pnpm/modules-yaml-12.1.3.tgz","fileCount":6,"integrity":"sha512-XXyUZdd578rml7nnoUv3You5Ns4ReUXDieP4VNglNLBIYs1RrbMIZGdqxnxii7cjLmIYauzlE1QMbFjTr/5pkA==","signatures":[{"sig":"MEUCIQDC7BCEgUDv+mdFK6fCItAOcJQeazRL4GCvol0NopTSKQIgAfYHSm9GVNrAhup8zwl2gT4pSdCMTU2PDyritAKBwlQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11669,"size":4260,"noattachment":false,"key":"/@pnpm/modules-yaml/-/@pnpm/modules-yaml-12.1.3.tgz"},"main":"lib/index.js","_from":"file:pnpm-modules-yaml-12.1.3.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":"zkochan","email":"z@kochan.io"},"_resolved":"/private/var/folders/g7/5ygp0ncd6qx5g4fn5hpsqq5c0000gn/T/aca5640f7f25ce6d16636c89b7f37ae5/pnpm-modules-yaml-12.1.3.tgz","_integrity":"sha512-XXyUZdd578rml7nnoUv3You5Ns4ReUXDieP4VNglNLBIYs1RrbMIZGdqxnxii7cjLmIYauzlE1QMbFjTr/5pkA==","repository":{"url":"https://github.com/pnpm/pnpm/blob/main/pkg-manager/modules-yaml","type":"git"},"_npmVersion":"9.6.7","description":"Reads/writes `node_modules/.modules.yaml`","directories":{},"_nodeVersion":"18.17.1","dependencies":{"ramda":"npm:@pnpm/ramda@0.28.1","is-windows":"^1.0.2","@pnpm/types":"9.3.0","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.0","@pnpm/modules-yaml":"12.1.3"},"_npmOperationalInternal":{"tmp":"tmp/modules-yaml_12.1.3_1696774972398_0.3138038382067663","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":1696774972615,"maintainers":[{"name":"pnpmuser","email":"publish-bot@pnpm.io"},{"name":"zkochan","email":"z@kochan.io"}],"_cnpm_publish_time":1696774972615,"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"}}