{"name":"@ts-type/package-dts","version":"1.0.14","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.14","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":"c6d18e900f491d75ea2511382cc4740eef61aca0","tarball":"http://registry-npm.ywwl.com/@ts-type/package-dts/download/@ts-type/package-dts-1.0.14.tgz","fileCount":28,"integrity":"sha512-5b6a2FFPmfMLojrZvbVt84Imsv5eCulZEgG47OpB9PE5aOnEvF8r2pQPal4JpXhQSolfDEsQWlgTv5804AXwmA==","signatures":[{"sig":"MEYCIQDJiMKE+RC7qlSHQaB0ZAM01XjO9000tL63FvoQN65dTQIhAKgQt9sm6hLkG72kYcIegx6NLwp+dqcICXdfsNbgw156","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":282499,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4mArCRA9TVsSAnZWagAA7fcP+gMj9G8YEFYkVIZusHmL\nUBaUgnUWawisswRvXtFVWAkuqGg08qmYkCiH7nOY8aOa0v/hAWU2Hbtiw8vO\nSOuis9FiPA+2bCPTTV7FJxcWGg3hfEw2j5dq98+I4Q5TK5S9ku1fS3U+25p0\nFUDiRiXXaUbkFuvc6y9o3PP573f202Xzsg6n58Kiyxvg10GoC4losAXaDuXh\nLlUOLDox5zglFSwyVX/7cqfZMtCf5oQxFiKm1nCuMiIGx/A3D1N5c5AgZTha\nObgwHIJZrkkQ4gaRxUSbwa3lERqytdSvfvgBQRRwbNGGSgjzE2dLxDu0VKDM\nNmy8DBYxxRFCfcfRLMS3pAZyg+0P5fIyf+4BfMZf6xwZOuQ6Qr5zK1FrteE1\nBUtlNdMTujYushx9EH46PYuU3Lz5qO276SZtVkXjDoTnUjXsbqFMUgBcv81t\nmevfPPiVIOPGm3MPptJOxKW4PpPcZ3ZxGEitt5osVN2efddHb9TPVJSyUYMc\n2VA185YPJGdolW2dRqCrlcehKzpq8F/ZiF+af1Kyk/QqNVihD2ToFsIcmi9K\nA5jLLuigUwfQSY81maI4Ng1Lkr7VFZJQslNkCis0+VBF3Nf6r8tZC68tQMmq\nZ1f09gK/Pzqa5uZBAvAdXh6QYk4KYEaZpYlJSUVGiHcQt7HmXK7v+SkaknI6\n3TrT\r\n=0YNV\r\n-----END PGP SIGNATURE-----\r\n","size":55645,"noattachment":false,"key":"/@ts-type/package-dts/-/@ts-type/package-dts-1.0.14.tgz"},"main":"index.js","gitHead":"cb5e0329339360d18501bfacbed58549e1d2287b","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.20"},"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.14_1591894059213_0.0028634630845496556","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":1591894059414,"_cnpm_publish_time":1591894059414,"dist-tags":{"latest":"3.0.15"}}