{"name":"@ts-type/package-dts","version":"1.0.16","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.16","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":"22e0836db717e63ad2d06b88d17b1739d939fe00","tarball":"http://registry-npm.ywwl.com/@ts-type/package-dts/download/@ts-type/package-dts-1.0.16.tgz","fileCount":28,"integrity":"sha512-htiU8/3syXkDhS4XuPAujmzzhymRUk8ljrWj+oqRym7i8jUxxg4rL4zVlQzk3e2oOVK9u4II4FAyu9Dm/Zk81A==","signatures":[{"sig":"MEYCIQCduQNr9z/Q0qnIX57IVpH3lfTmZNLjvhFMcW8Cw5ERywIhAKI5hzL4wpcP8DR38iTj0PDdGmuZlAVSZWqIde0M1MTF","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":282899,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4mgoCRA9TVsSAnZWagAAo5IP/iAH+m8X9Ae9yZ5pS2zv\n3xFFmwem+Emx3n6bNQJm7egEe22S0GhZPQNpicoJt/qbbbNM3+iNTPEp7PGA\nU3GtPT61qh9qbSitPol3tWnwtGR8xuF2wPDWC4up4NTP9HJl/7Xo+w+S0xdS\numbdI4fW54FJ96ZgziC5QuzJnrebPL7xg3LrzthZDpp5Yr2Wc+1Nv27fM1m0\nUgiy4sdk3rEdOXyS6nhBJccX5zPP1Af+Ku9i+eZQQAToSLgZA/KiCIFXkWkC\ntHUkkwirNTf0myxCbCBDJSL/h24DDEpleaD5+Bm7P+xV7j/vv6CptPhD/UQN\nWG8hbm3knPt7Y9t6eG3OeFqJCqLg+/dmcIW0Il3TUSl855WW6ATsrXXJGCL4\nrLCDmeCEdd3j1Y2NHQ7Y0zUlSoDSJM4upM84nrGU+oBbcGjdUzz2zoOV68YN\n6cu6FmII+6r+qeu1EwR6rjBADBnpV35czIEOsLyYMb0q2r4PbZdNrGyHr/2A\n4AFupR/qfJvzbhkx2TnUzcBRcgDYev1pK5VO/Z8k7OvNF/JuSwoyWCg6Zk85\nJhIDbK3YNZBC0NhFKqaQBa4VeCXBK74aQ3VZD/PNdwyJrvFqyIjhKNoETWoz\ndLXplxvx21Tzz8eqcE+iqu/EO2xBuEooPhv8OYRTocIaxbybpZgKBuK9rE40\nttEf\r\n=DyzC\r\n-----END PGP SIGNATURE-----\r\n","size":55671,"noattachment":false,"key":"/@ts-type/package-dts/-/@ts-type/package-dts-1.0.16.tgz"},"main":"index.js","gitHead":"bdcb802d5ac830068190417e25b4f57898c7b9d8","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.22"},"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.16_1591896103562_0.35022566464635085","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":1591896103731,"_cnpm_publish_time":1591896103731,"dist-tags":{"latest":"3.0.15"}}