{"name":"@ts-type/package-dts","version":"1.0.8","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.8","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":"3b91dc6abba715813e8ac77921499825b4d7e3e3","tarball":"http://registry-npm.ywwl.com/@ts-type/package-dts/download/@ts-type/package-dts-1.0.8.tgz","fileCount":27,"integrity":"sha512-6ArbF2JwUK0ATi7Zp8bujnyGpM3N4jhANnjYZEodb2g2ooIBaPwbCH3mldu7Ix6suWCUMRVzhKo+/PB7Y7ZF0w==","signatures":[{"sig":"MEQCICc4+qEwdN1Xk+Ay9rW/z4gmyu03UFkyx8b+rxNalpmAAiBXPiwp6Jo8ktdKhIwdZ+1ESEGrlEfkgUiWOVJJ6L9DEg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":220311,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeg9FRCRA9TVsSAnZWagAAyWwP/jxwmVr3VXED+bRKoZhO\nL5CWo9FwJHtgbpltfaLiDiFgf9gqUzi10zqXHSwyRAnDIiAC5IzBaZx9t1wM\npKEWlw/n+YBxLdz9sqiRYNI4HdpjTFB076kxFUzdUU4FPPkg2FAWG4hCmD3G\n3eV2qVa/val8AVrvsbTXnKzojwz2GTOWsWwO4Y+kuYc29iGh2wpkKiATsyIV\nxxpoU6CgGC01hFi1kXt3giN2LIejXZx5mBG8uNLhljjxD2D5XxQ8T0rfGvc+\nE6Qdo9qTvIMHDSZnFUpdXD4o4YLSHqHexJa3oB47yQVTT+HwGHadgrCSwh1T\nTmRoB1MyKg2kp1UdYXbnnptbq5ydDRQiVxc0qGk7eajgeLkilwEMu+9ZcvN9\nn9/mlUWNIrb6qTJGx9g5ab7jb5Z9rRt1j5dB73cXaaHoclciJELjCRbiMnv5\nzwPQX1tRfEV3JdUcNxhM8svKcCh9dwb5y0rAYZ2gxlfUqiSJhDqQhznCn/bR\nVLPhfoRQFp4r09oVCu+L+bU7Xnrw3KIyDSlzKauR2WRh9QWlV5xfuh9QTpUg\nlRvIgfS38w0eUPxSrh1MpUMVuiWp2HADTQHKaFZlYmfIznp+HFMxnXfTfQv3\nsfRD48V/Nw/tTfhKaliCjeBLFSVFup7Z8s9vfE7tCeLUUaPnZ2zq6BCAfoGo\ny0/I\r\n=xW4I\r\n-----END PGP SIGNATURE-----\r\n","size":48018,"noattachment":false,"key":"/@ts-type/package-dts/-/@ts-type/package-dts-1.0.8.tgz"},"main":"index.js","gitHead":"30e5dd05f7b721e6a1534e822289da88b84aeb96","private":false,"scripts":{"ncu":"npx yarn-tool ncu -u","lint":"eslint **/*.ts","test":"echo \"Error: no test specified\" && exit 1","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@v13.12.0+x64 (win32)","description":"A Typescript type definition for NPM package json","directories":{"test":"test"},"_nodeVersion":"13.12.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"axios":"^0.19.2","bluebird":"^3.7.2","fs-extra":"^9.0.0","@types/bluebird":"^3.5.30","json-schema-to-typescript":"^8.2.0"},"sharedDependencies":{"eslint-config-bluelovers":"latest"},"_npmOperationalInternal":{"tmp":"tmp/package-dts_1.0.8_1585697105282_0.7532776239588785","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":1585697105465,"_cnpm_publish_time":1585697105465,"dist-tags":{"latest":"3.0.15"}}