{"name":"@pnpm/modules-yaml","version":"2.0.1","keywords":["pnpm","modules.yaml"],"author":{"url":"https://www.kochan.io/","name":"Zoltan Kochan","email":"z@kochan.io"},"license":"MIT","_id":"@pnpm/modules-yaml@2.0.1","homepage":"https://github.com/pnpm/pnpm/blob/master/packages/modules-yaml#readme","bugs":{"url":"https://github.com/pnpm/pnpm/issues"},"mos":{"plugins":["readme"],"installation":{"useShortAlias":true}},"dist":{"shasum":"0b771e9d00f4f1848298be692cfed9bab560d788","tarball":"http://registry-npm.ywwl.com/@pnpm/modules-yaml/download/@pnpm/modules-yaml-2.0.1.tgz","fileCount":6,"integrity":"sha512-PSGuWyk7BwLjHVCT7eDgxrwsRIfwh+5/Dn4GXK7S5cjep5kYgb1DdjiA8ND/Xug6xzq93tFaYbHllM8pKbcmNA==","signatures":[{"sig":"MEYCIQCv2EYilUj5AE/OlfbC8O+q8Q1bmlUFzPB5uAcBdFWbFgIhAIpjjJpeTmi0OvFLSGnOU4KRtPJu0C4FnAyJ5AHBMrXh","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8675,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcBHiaCRA9TVsSAnZWagAANcIP/R9U87vX/k17Zb8oGkhe\nWW0l49YYhwnpdLeAEAh/mWr0o5Ergv82M8TCa8kwq+52cG4mX+rmSCOMuIpp\nob9njLtw4ISGLCB/bJuXStbJMNX0vhZQ2bg5fpBEw9dvDB1h3f/4DDVzscSg\nm0zQMzt5FMFP/D/LefClun/9nMKAcFN3ncLUI562bSdx4u0jIMX3Lm0/eDmt\n7wDRBCmgvCkI95CwGNtnQWSALfWFS/Clyip1vyIA5gtRQU6LKxpdO5b4Kni1\neXI53elnEj/rY/cSVFBvLl4/JPDpxXd9EIaFlRMp8c2KWzpTiSTnXoLxdz7O\nzgP6feSQBM+ix2/CcD7bqwRZ1Wj4IwZZU0hneoQyTg7alYQD+xaclzpHcIu+\nEXXftJCLa7DxtGApmLJASx8fYy7ohZWJzY1UfvsAGJS7qk5nfkuJ8/2RtMqZ\n6BcgehmcNExQiiK70HURJhuyAST/AK6FrLkyDATg02s4PUg6PKaGuzybMC/D\nu54+/mAaG7Ic1WjUw+4Lpd+aUbcCZNLuVM9w4E7xUQqhlKxiI78iPm99j/JR\n0BfPq1C9hy4x8YbUOHykGFNlb/tNgeJ2DVSz6utpYujjmdcnS1J7EDvizb4P\naFaOKxWMI/zwhZ4GEJ0dco5ZZGXYUw8qwG9Ryj8gHjULgwgVb4pv6/Y2p5aS\nss9b\r\n=h/JD\r\n-----END PGP SIGNATURE-----\r\n","size":3638,"noattachment":false,"key":"/@pnpm/modules-yaml/-/@pnpm/modules-yaml-2.0.1.tgz"},"main":"lib/index.js","engines":{"node":">=6"},"scripts":{"md":"mos","fix":"tslint -c tslint.json src/**/*.ts test/**/*.ts --fix","tsc":"rimraf lib && tsc","lint":"tslint -c tslint.json src/**/*.ts test/**/*.ts","test":"npm run tsc && npm run lint && ts-node test --type-check && mos t","prepublishOnly":"npm run tsc"},"typings":"lib/index.d.ts","_npmUser":{"name":"zkochan","email":"z@kochan.io"},"repository":{"url":"https://github.com/pnpm/pnpm/blob/master/packages/modules-yaml","type":"git"},"_npmVersion":"6.4.1","description":"Reads/writes `node_modules/.modules.yaml`","directories":{},"_nodeVersion":"10.12.0","dependencies":{"@pnpm/types":"2.0.0","read-yaml-file":"1.1.0","write-yaml-file":"2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"mos":"2.0.0-alpha.3","tape":"4.9.1","tempy":"0.2.1","rimraf":"2.6.2","tslint":"5.11.0","ts-node":"7.0.1","typescript":"3.1.6","@types/tape":"4.2.32","@types/tempy":"0.2.0","mos-plugin-readme":"1.0.4","@pnpm/modules-yaml":"link:","@pnpm/tslint-config":"0.0.0"},"_npmOperationalInternal":{"tmp":"tmp/modules-yaml_2.0.1_1543796889961_0.4487787547401463","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":1543796890122,"maintainers":[{"name":"pnpmuser","email":"publish-bot@pnpm.io"},{"name":"zkochan","email":"z@kochan.io"}],"_cnpm_publish_time":1543796890122,"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"}}