{"name":"@ts-type/package-dts","version":"1.0.1","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.1","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":"15210cbc61d9f533407cdedca591cfcfedc80ef7","tarball":"http://registry-npm.ywwl.com/@ts-type/package-dts/download/@ts-type/package-dts-1.0.1.tgz","fileCount":9,"integrity":"sha512-e0Y77CDmB9iEEAo8jtpfKM6sYOd7V+rWQAri4sVPb2eUTrVQs3dh9O+5lSrRUHU6BtIVbb94gloExDAEGTNnyA==","signatures":[{"sig":"MEUCIQDoBGapkUL2456fAlW57ltywT8SJTRoGpNXRHbspwB5ZgIgbLlO47DtPfmV1d4q58EARwQURkTTyPqckzkLMUvo7/o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33064,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc3yorCRA9TVsSAnZWagAA9h0P/Ap3BAaF9TOnM4PZHyhs\n26e5pPYEo5WIRjjP2x5lfuwCH7Y9Vw+NHKVgCsCOhL1bBeOQM38uN6SLoBIC\nH9oHKHOoeqwBK3Em8it9E8EKQb3SGCXi0Qx0WkynD0cqpSpdJIVbaqaW0Rxy\nxx39B54d8QlHf4ijbuC3aew2xTdkOorYQkqzIHPgydMuuUV+iGYb66UPNF5Y\ndY677U96eHBLLu+vUdJvN7ngODPfV48/SoPj5Q5Mt4PTRnaJtw6WfV9rxefo\nZBKKOf2gIvyhZdX9JrTpfvsjcrwK5vE/v/Tt0rWYcH2+8Wu953TbTTFRe30o\nAeOXunkYtA481inIS0slV4hWwYhVVHag2QDLl+bLWt90r13iehMj/EMUrqB+\naFyXeELJENBsQ6nPZztt80ZZySiTaTPjBeEUxnoUqFjYHhm1nwN3bhiojml/\nDo59EAyrFJj0JKv8pUz41rfNDNgC8NT1hHF4YwURPOb2VKa+CjxkSrfsZJzS\nzgQbBL4un8BOF0LGN5s94fWkzsrJQMhx7kW1jpQ8UcsvTE8IuBvSnBEnkmBP\nt/i4GZ7DZGY+dsFxRz7l9bUzLMVrtfS/Fl0a9P6uVXVlFSZotXuIONEB2XPt\naDBjUVjPohIFItFDW03NB4/sAYrBrti8f12fdOZcZh1xQuTPLmMDh6uBm7xI\ni1Tn\r\n=5QSK\r\n-----END PGP SIGNATURE-----\r\n","size":12348,"noattachment":false,"key":"/@ts-type/package-dts/-/@ts-type/package-dts-1.0.1.tgz"},"main":"index.js","private":false,"scripts":{"ncu":"npx npm-check-updates -u","test":"echo \"Error: no test specified\" && exit 1","coverage":"npx nyc npm run test","update:schema":"npx ts-node ./script/index","prepublishOnly":"npm run ncu && npm run sort-package-json","sort-package-json":"npx sort-package-json ./package.json"},"_npmUser":{"name":"bluelovers","email":"codelovers@users.sourceforge.net"},"repository":{"url":"git+https://github.com/bluelovers/ws-ts-type.git","type":"git"},"_npmVersion":"6.9.0","description":"A Typescript type definition for NPM package json","directories":{"test":"test"},"_nodeVersion":"12.2.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"axios":"^0.18.0","bluebird":"^3.5.4","fs-extra":"^8.0.1","@types/bluebird":"^3.5.26","json-schema-to-typescript":"^6.1.3"},"_npmOperationalInternal":{"tmp":"tmp/package-dts_1.0.1_1558129195277_0.032935347262371684","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":1558129195418,"_cnpm_publish_time":1558129195418,"dist-tags":{"latest":"3.0.15"}}