{"name":"@ts-type/package-dts","version":"1.0.37","keywords":[".d.ts","@types","declaration","definition","dev","develop","development","dts","environment","ide","interface","json","node","package","package.json","playground","runtime","schema","ts","type","type-level","typeing","typelevel","types","typescript","typing","typings"],"author":"","license":"ISC","_id":"@ts-type/package-dts@1.0.37","maintainers":[{"name":"bluelovers","email":"codelovers@users.sourceforge.net"}],"homepage":"https://github.com/bluelovers/ws-ts-type/tree/master/packages/package-dts#readme","bugs":{"url":"https://github.com/bluelovers/ws-ts-type/issues"},"dist":{"shasum":"85a317b3c340cbc68976198c04ec71d97c033809","tarball":"http://registry-npm.ywwl.com/@ts-type/package-dts/download/@ts-type/package-dts-1.0.37.tgz","fileCount":41,"integrity":"sha512-k69UoQAehe6WywJtFmiV5jSYTaFItHIceMsloDRV5puzKvb0W33pfJGehVrSiQDIFHMtvSA1Q9xZEmHLD1yX3Q==","signatures":[{"sig":"MEUCIQCk7VNG9zBYi6sZXNpVe+bwr3R/8rWMdJJrYE3301000gIgFxi4cSbvwbqlVqQdCF8dmNIACZsfMyyBMnm8flKhQXU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":471668,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfHRqjCRA9TVsSAnZWagAAhesP/iI0R2NweOZ5Yp/aaAH+\naWAwNPQq7V0L5uaBsPhrxuWAsu9zQDUzv7JjuvYC32VKp6jxkkYDnVHgifLJ\nW0bNBLDwP8AfTXhkZqaNvp7h4KXpr2YrkYjA2do7yLliEz0gCWqLYKz92+i0\nKPRQEdJXgbUz3byuP6/UAnSyPMh0j9IgFP+YsW++fLvz3Xp+cDribQOVnwsn\nx5iGyTTM2Z4qdB2EIqx+cpgcjHp2Yh4oaVn5G6A5KTAvdxHuYk4xJBK7FeXM\ndJYIJamk8C6Z2KVdyw9COIvXWqsawU7xtkjev+kiSUi7N+Vdd2S62/10yMks\nDIgPff1eWpmWBZfc3czYrmpvOZTuR+DUQsZOEwPSMKGA7M3/7ULduoVabwwA\nzXLkGcxt1ZEGSRDPE5kerTQpb6+qnDZi9FHOvdsTy3TkCbqYs+q3g9rZUIj2\n31T54CcFT3amvGhCFvSO5HxXgJ+3Oa91kA4exNNaTIpmaY6Ga5ScexnmTqPp\n7zJZN5kAFcnGcNbSNTTMcyOlqYZ+/7RsWtc7a9ZfwDJjqKelgjAy/G8bCGzq\n6upTARCbiTp2HJkWsEZLHe82jTseBPERxMlRkx0+8mu8lWIlyYdpFMG93uK8\nSw6LnxnrOs+n4xdzt2iP7z6spJ17d/qyAKExwy02sBDnIJ/yBiAYVatO1XgE\ngbcw\r\n=Nvv2\r\n-----END PGP SIGNATURE-----\r\n","size":79396,"noattachment":false,"key":"/@ts-type/package-dts/-/@ts-type/package-dts-1.0.37.tgz"},"main":"index.js","gitHead":"810f2c52bfca66e36f8f2819a79e0a8972c8c3d9","private":false,"scripts":{"ncu":"npx yarn-tool ncu -u","lint":"eslint **/*.ts","test":"echo \"Error: no test specified\"","build":"yarn run update:schema","pretest":"yarn run build","coverage":"npx nyc npm run test","posttest":"git commit -m \"build(schema): update schema\" ./types ./schema & echo posttest","ts:check":"tsc --noEmit -p tsconfig.check.json","preversion":"yarn run test","update:schema":"npx ts-node ./script/index","prepublishOnly":"echo prepublishOnly","sort-package-json":"npx yarn-tool sort"},"_npmUser":{"name":"bluelovers","email":"codelovers@users.sourceforge.net"},"repository":{"url":"git+https://github.com/bluelovers/ws-ts-type.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v14.5.0+x64 (win32)","description":"A Typescript type definition for NPM package json","directories":{"test":"test"},"_nodeVersion":"14.5.0","dependencies":{"ts-type":"^1.2.27","@types/semver":"^7.3.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"axios":"^0.19.2","bluebird":"^3.7.2","fs-extra":"^9.0.1","json-schema-to-typescript":"^9.1.1"},"sharedDependencies":{"eslint-config-bluelovers":"latest"},"_npmOperationalInternal":{"tmp":"tmp/package-dts_1.0.37_1595742883452_0.16827498641029792","host":"s3://npm-registry-packages"},"readme":"# package-dts\n\nNPM 配置文件（package.json、.eslintrc.json、tsconfig.json、.travis.yml）的 TypeScript 類型定義\n\nTypeScript type definitions for NPM configuration files (package.json, .eslintrc.json, tsconfig.json, .travis.yml)\n\n## 功能特點 / Features\n\n- 完整的 package.json 類型定義\n- Complete package.json type definitions\n- .eslintrc.json 類型定義\n- .eslintrc.json type definitions\n- tsconfig.json 類型定義\n- tsconfig.json type definitions\n- .travis.yml 類型定義\n- .travis.yml type definitions\n- 支援讀取並解析配置檔案\n- Support reading and parsing configuration files\n\n## 安裝 / Install\n\n```bash\nnpm install @ts-type/package-dts\n# or\nyarn add @ts-type/package-dts\n```\n\n## 使用範例 / Usage Example\n\n```typescript\nimport IPackageJson from '@ts-type/package-dts/package-json';\nimport { readPackageJson } from '@ts-type/package-dts';\n\n// 讀取 package.json\nconst pkg = readPackageJson('./package.json');\n\n// 使用類型\nconst name: string = pkg.name;\nconst version: string = pkg.version;\nconst keywords: string[] = pkg.keywords ?? [];\n\n// 驗證類型\nconst devDeps = pkg.devDependencies;\nif (devDeps) {\n    Object.keys(devDeps).forEach(dep => {\n        console.log(`${dep}@${devDeps[dep]}`);\n    });\n}\n```\n\n![image](https://github.com/bluelovers/ws-ts-type/raw/master/packages/package-dts/readme/image.png)\n","publish_time":1595742883560,"_cnpm_publish_time":1595742883560,"dist-tags":{"latest":"3.0.15"}}