@zkochan/pnpm
Version:
Fast, disk space efficient package manager
134 lines (133 loc) • 4.55 kB
JSON
{
"_args": [
[
{
"raw": "@pnpm/modules-yaml@1.0.0",
"scope": "@pnpm",
"escapedName": "@pnpm%2fmodules-yaml",
"name": "@pnpm/modules-yaml",
"rawSpec": "1.0.0",
"spec": "1.0.0",
"type": "version"
},
"/home/zkochan/src/pnpm/packages/pnpm/node_modules/supi"
]
],
"_from": "@pnpm/modules-yaml@1.0.0",
"_id": "@pnpm/modules-yaml@1.0.0",
"_inCache": true,
"_location": "/@pnpm/modules-yaml",
"_nodeVersion": "6.11.4",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/modules-yaml_1.0.0_1521318267979_0.15073181744151043"
},
"_npmUser": {
"name": "zkochan",
"email": "z@kochan.io"
},
"_npmVersion": "5.7.1",
"_phantomChildren": {},
"_requested": {
"raw": "@pnpm/modules-yaml@1.0.0",
"scope": "@pnpm",
"escapedName": "@pnpm%2fmodules-yaml",
"name": "@pnpm/modules-yaml",
"rawSpec": "1.0.0",
"spec": "1.0.0",
"type": "version"
},
"_requiredBy": [
"#DEV:/",
"/@pnpm/headless",
"/supi"
],
"_resolved": "https://registry.npmjs.org/@pnpm/modules-yaml/-/modules-yaml-1.0.0.tgz",
"_shasum": "0899df2b1b27b166c4887f80b8a3b6f0d0d34fac",
"_shrinkwrap": null,
"_spec": "@pnpm/modules-yaml@1.0.0",
"_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/supi",
"author": {
"name": "Zoltan Kochan",
"email": "z@kochan.io",
"url": "https://www.kochan.io/"
},
"bugs": {
"url": "https://github.com/pnpm/modules-yaml/issues"
},
"dependencies": {
"load-yaml-file": "^0.1.0",
"write-yaml-file": "^1.0.1"
},
"description": "Reads/writes `node_modules/.modules.yaml`",
"devDependencies": {
"@types/tape": "^4.2.31",
"mos": "^2.0.0-alpha.3",
"mos-plugin-readme": "^1.0.4",
"package-preview": "^1.0.1",
"rimraf": "^2.6.2",
"tape": "^4.8.0",
"tempy": "^0.2.1",
"ts-node": "^5.0.0",
"tslint": "^5.8.0",
"typescript": "^2.6.1"
},
"directories": {},
"dist": {
"integrity": "sha512-bl9TPt2UObSEpGPQHZ2soXSSwz+/0XZqK+afBRJ4L78NKV41oZTUnrLjeNbeNEVwIG9icrQ3ZeSslIvQy4L+Dw==",
"shasum": "0899df2b1b27b166c4887f80b8a3b6f0d0d34fac",
"tarball": "https://registry.npmjs.org/@pnpm/modules-yaml/-/modules-yaml-1.0.0.tgz",
"fileCount": 6,
"unpackedSize": 7004
},
"engines": {
"node": ">=4"
},
"files": [
"lib"
],
"gitHead": "b3c413482fac8732a01b07411b2dc4e6fce6d6e9",
"homepage": "https://github.com/pnpm/modules-yaml#readme",
"keywords": [
"pnpm",
"modules.yaml"
],
"license": "MIT",
"main": "lib/index.js",
"maintainers": [
{
"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', 'travis')-->\n[](https://www.npmjs.com/package/@pnpm/modules-yaml) [](https://travis-ci.org/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": "git+https://github.com/pnpm/modules-yaml.git"
},
"scripts": {
"fix": "tslint -c tslint.json --project . --fix",
"lint": "tslint -c tslint.json --project .",
"md": "mos",
"prepublishOnly": "npm run tsc",
"test": "npm run lint && preview && ts-node test --type-check && mos t",
"tsc": "rimraf lib && tsc"
},
"typings": "lib/index.d.ts",
"version": "1.0.0"
}