UNPKG

pnpm

Version:

Fast, disk space efficient package manager

142 lines (141 loc) 5.61 kB
{ "_args": [ [ { "raw": "@pnpm/modules-yaml@3.0.2", "scope": "@pnpm", "escapedName": "@pnpm%2fmodules-yaml", "name": "@pnpm/modules-yaml", "rawSpec": "3.0.2", "spec": "3.0.2", "type": "version" }, "/home/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/dependencies-hierarchy" ] ], "_from": "@pnpm/modules-yaml@3.0.2", "_hasShrinkwrap": false, "_id": "@pnpm/modules-yaml@3.0.2", "_location": "/@pnpm/modules-yaml", "_nodeVersion": "10.12.0", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/modules-yaml_3.0.2_1556137171162_0.01741317932377595" }, "_npmUser": { "name": "zkochan", "email": "z@kochan.io" }, "_npmVersion": "6.9.0", "_phantomChildren": {}, "_requested": { "raw": "@pnpm/modules-yaml@3.0.2", "scope": "@pnpm", "escapedName": "@pnpm%2fmodules-yaml", "name": "@pnpm/modules-yaml", "rawSpec": "3.0.2", "spec": "3.0.2", "type": "version" }, "_requiredBy": [ "#DEV:/", "/@pnpm/headless", "/@pnpm/read-importers-context", "/dependencies-hierarchy", "/supi" ], "_resolved": "https://registry.npmjs.org/@pnpm/modules-yaml/-/modules-yaml-3.0.2.tgz", "_shasum": "c4526bcbf99d65ed55bd8a3db310d595633c07ce", "_shrinkwrap": null, "_spec": "@pnpm/modules-yaml@3.0.2", "_where": "/home/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/dependencies-hierarchy", "author": { "name": "Zoltan Kochan", "email": "z@kochan.io", "url": "https://www.kochan.io/" }, "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, "dependencies": { "@pnpm/types": "3.2.0", "read-yaml-file": "1.1.0", "write-yaml-file": "2.0.0" }, "description": "Reads/writes `node_modules/.modules.yaml`", "devDependencies": { "@pnpm/modules-yaml": "3.0.2", "@pnpm/tslint-config": "0.0.0", "@types/tape": "4.2.33", "mos": "2.0.0-alpha.3", "mos-plugin-readme": "1.0.4", "rimraf": "2.6.3", "tape": "4.10.1", "tempy": "0.3.0", "ts-node": "8.1.0", "tslint": "5.16.0", "typescript": "3.4.5" }, "directories": {}, "dist": { "integrity": "sha512-c62tkuYuNXc6WhfmlBBUodWswRgjZrElxDiTGf/nLS/YxQsVKpbBvE6ZnZUu7Jax77ZX/6ryDwdg4edKwunmTg==", "shasum": "c4526bcbf99d65ed55bd8a3db310d595633c07ce", "tarball": "https://registry.npmjs.org/@pnpm/modules-yaml/-/modules-yaml-3.0.2.tgz", "fileCount": 6, "unpackedSize": 7862, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcwMTTCRA9TVsSAnZWagAADxgP/17A4lMjNEziGRIN52Xs\nThQKugeJR8Vjx01DroAyiOoGMs8aKEwjXZXiUc3e2YtMO+n90Jdiv0Tlvn4j\nWnCRsyWnZOTlBv/O3lI3kASuBfyhjS1d+QvP8t1ewN0YPgyt2ERE3GZTRXkk\nORjjH11FEjqwYK2A2ICTKu7EVuxeX4jCHcKLJv+pGyPVrilcmTdIPUxQPB0J\n742tBWLJ52p1wnkr1OVnybna1xgG8DdGHbQLj0mbgFzAg2P4CewT5CotNQ1H\n7m21ix8wwdBka29CrCWViXKUGaTCh2VJMii8rWknRjA13WDBlSdcZvuVezrg\nAurrxbyuMN9QW0eUwe8TsC4lcc1/zD2sYhKShR/AEdJDGOSrjwkpcsIH5WjN\nEOO25i71YYf4Bl4w20Q/YLBDxfCmFdTi4y4TVKDaxs8Q1e9DXcaGYQa12Wad\nqVu29hwfw/em7HEisHUj1XaPbCG18cDytRVmOXRliKsBV8GqxeW+zG5gg0dc\nIBUXFptf6DmMDYQEXaUsIS6BlOcNHJ7zNzexnkqza9Cy6p3CHcgnWY7fMGt1\nHMnAzlxEDDaZzF8pPJX6zquicah6N+/rrGmvLIwzn60pg9vbzR1nCeGaHreG\ntMQEAGGivnYgQ2WJhybUPDWdw9TzK4b0qsO6MTQwHIbinKGZHHxUXkYwagrm\nZSuK\r\n=+UxV\r\n-----END PGP SIGNATURE-----\r\n" }, "engines": { "node": ">=8" }, "files": [ "lib" ], "homepage": "https://github.com/pnpm/pnpm/blob/master/packages/modules-yaml#readme", "keywords": [ "pnpm", "modules.yaml" ], "license": "MIT", "main": "lib/index.js", "maintainers": [ { "name": "etamponi", "email": "emanuele.tamponi@gmail.com" }, { "name": "pnpmuser", "email": "zoltan.kochan@gmail.com" }, { "name": "zkochan", "email": "z@kochan.io" } ], "mos": { "plugins": [ "readme" ], "installation": { "useShortAlias": true } }, "name": "@pnpm/modules-yaml", "optionalDependencies": {}, "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\nnpm i -S @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 independentLeaves: false,\n layoutVersion: 1,\n packageManager: 'pnpm@1.0.0',\n pendingBuilds: [],\n shamefullyFlatten: false,\n skipped: [],\n store: '/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\n[MIT](./LICENSE) © [Zoltan Kochan](https://www.kochan.io/)\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "https://github.com/pnpm/pnpm/blob/master/packages/modules-yaml" }, "scripts": { "fix": "tslint -c tslint.json src/**/*.ts test/**/*.ts --fix", "lint": "tslint -c tslint.json src/**/*.ts test/**/*.ts", "md": "mos", "prepublishOnly": "npm run tsc", "test": "npm run tsc && npm run lint && ts-node test --type-check && mos t", "tsc": "rimraf lib && tsc" }, "typings": "lib/index.d.ts", "version": "3.0.2" }