{"name":"@ts-type/package-dts","version":"1.0.19","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.19","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":"1a364566f189b01eeb3a06074e6e360a28140736","tarball":"http://registry-npm.ywwl.com/@ts-type/package-dts/download/@ts-type/package-dts-1.0.19.tgz","fileCount":31,"integrity":"sha512-d1lH/VV6lA4OkA+H7dL12/KTZ9w1aEiSZnOphCaaBTe1axInwxw4VDfnZHW1P5AM5ZCQSIxUwOFQuWOuwYDEUQ==","signatures":[{"sig":"MEQCIEcKtQ897Rp58ah6k1t6L6V+QCZPZgynASFdfM6fUZ+nAiBYGc/HyK/EJkzErV42U7JbqIc42BlwcYrJHtuZM3ZeBg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":287351,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4oGWCRA9TVsSAnZWagAAyzMP/jjKLeSv4BNpCy7z0+oG\nZRsER975UbqrU7Y3kqwxsfrbRYrVpQovaa2UScMAoix0edRVYGtQT0G9rZof\n8FeIvSgNsXTKQENaVtjmDW5+eABPh/jAYNL7G+BcilstUjyB7vwnyMEY3wa0\nMSOSxU9ybn1hMJFTGFJFp0WAvmlVSRNZAJOtSm7pfyDsXNL8reWF6Asz7l3l\n7b/EMaixGWuMtz6bP5lP2BIqtRNeaGiqz2KzUFWovYb5XOv3SiFZx60y4dQS\nSn+vQDiNYmBWSMH+biclfw5nxWIEt9Q3IFcQ29u0qL6YqPhN5zZvbTkoD4pE\nBGTxKtP8Wc/bF40GTEpgN2T7WM6nb/E0dOeab5O9f+sXpj7nHf1QP7Ca7lTP\nF46BUUC3E2ISg48ZI/EmDuBfoiNI+Fvkr5AVneYZIQ0C/r5gIuQa7a+OSJ8L\naqWUpqILrqyl6gAHM/bqUw2GL60gHyw0z/qx+gGS4HAx6HVO9peRasWU/ai1\nWqkB+a7B3uXAryl0Jm7yZQE2HsSRsnvwbagCvvQr0wsrINhMSpQSidllkrKf\n6TtnvyaPKUh2gDqfrOaeI0ZY+VFvEAn196EjrMndLQk3UkKZwutUF2SlGqOJ\ng94tfQTXBca6c+52+53HGp0cryN0xaFbzil4pgyyAHP24wE3Zvr6PN8yyLpI\n2YKx\r\n=7uNS\r\n-----END PGP SIGNATURE-----\r\n","size":56791,"noattachment":false,"key":"/@ts-type/package-dts/-/@ts-type/package-dts-1.0.19.tgz"},"main":"index.js","gitHead":"59ee097c76320cb362591fa2859afa267abe335e","private":false,"scripts":{"ncu":"npx yarn-tool ncu -u","lint":"eslint **/*.ts","test":"echo \"Error: no test specified\" && exit 1","build":"yarn run update:schema","coverage":"npx nyc npm run test","update:schema":"npx ts-node ./script/index","prepublishOnly":"yarn run ncu && yarn run sort-package-json","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.20.2/node@v14.4.0+x64 (win32)","description":"A Typescript type definition for NPM package json","directories":{"test":"test"},"_nodeVersion":"14.4.0","dependencies":{"ts-type":"^1.2.23"},"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.0"},"sharedDependencies":{"eslint-config-bluelovers":"latest"},"_npmOperationalInternal":{"tmp":"tmp/package-dts_1.0.19_1591902613764_0.06843298829536515","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":1591902613946,"_cnpm_publish_time":1591902613946,"dist-tags":{"latest":"3.0.15"}}