{"name":"@ts-type/package-dts","version":"1.0.39","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.39","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":"b53261bb68ad4578290ca824e83f173adc1e6424","tarball":"http://registry-npm.ywwl.com/@ts-type/package-dts/download/@ts-type/package-dts-1.0.39.tgz","fileCount":41,"integrity":"sha512-PpaKNA9Pyo9xycpuusUcREMVK9hT2mC83HqgKCaURAYNFkYQgVlVLjVr4SKdFJF3ItzpNizegm2TvK4ApYoEQQ==","signatures":[{"sig":"MEUCIGl+4hE5y8Q0UmMOmswCcScTKGyV8ecw5PgL8vPvr0YuAiEAruinXVZPbw8UVe7nwpAnqWy8HKJ/EKsjbgoMovPh/4o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":472132,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfHR7gCRA9TVsSAnZWagAA1EoP/jcwFU++vlpdeZblwZUU\nt9wJYa+UzWo93Z+WxZZWolxcCEW66vpb9fnomosI9/bsBTjFXQHidIQkou3X\nv0JTK3jMDIp3fQtJT7cWBZGNxIHPPXaJz6wSukgpm+AOLwaz/uUd7RsMzs4W\n6rryYOuBpOhklCgVE3TOWJqZgHEl1b9AERqbC8EbDDLowSbfRPcFsFgvz4gt\nD1yV3JtHr3gfrfM+oBuKVUjznJs6hBcVw2Vj/Mqz8riuKcUk1QiBr5Ih/kf3\nN0gvw6fxPidkBnQTURzB6gwecNJrrL1mlWlfdEQzUe1A4HowKWRYF3JgjDI+\n5ws1A2A2GUp9UwVDNzZ58XnrrbAMxxioxyVRPZV+D1w3WCREzwtqvn59BdbY\nwVd9yNhDvAW/hzXx++SyIIbQRtR81u/As2E7BMfCMqu3APbeKXXB0PbfF3K/\n4wQvOWaj91N+hclDOb4LLUpnewuMl//gHlKpzcEt5oR4lLY/sYg8E7kge9uG\nQLgskmNMj+OGKMyBYN8YC6O6i+o2Xt5m0eBiFX6d1qu3maYLRNaQhRsQFlVh\nH+jdEySZMlYcSUgInD40bhfqzfoXfxKeG5rkUMl8ud6r95QONjn4QpB9UV8j\n7Uhb+poEDlHPxo4D5Qh8LXA1i79RPYBDAji1Fch368TlhHzFvo/IEyBtLc+x\nzKq7\r\n=SWnJ\r\n-----END PGP SIGNATURE-----\r\n","size":79531,"noattachment":false,"key":"/@ts-type/package-dts/-/@ts-type/package-dts-1.0.39.tgz"},"main":"index.js","gitHead":"95b5a06312e0d69c51920748d7d3f02a7a3e0984","private":false,"scripts":{"ncu":"npx yarn-tool ncu -u","lint":"eslint **/*.ts","test":"yarn run ts:check","build":"yarn run update:schema","pretest":"yarn run build","coverage":"npx nyc npm run test","posttest":"git commit -m \"build(schema): update schema\" ./types ./schema & echo posttest","ts:check":"tsc --noEmit -p tsconfig.check.json","preversion":"yarn run test","update:schema":"npx ts-node ./script/index","prepublishOnly":"echo prepublishOnly","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.22.1/node@v14.5.0+x64 (win32)","description":"A Typescript type definition for NPM package json","directories":{"test":"test"},"_nodeVersion":"14.5.0","dependencies":{"ts-type":"^1.2.29","@types/semver":"^7.3.1"},"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.1"},"sharedDependencies":{"eslint-config-bluelovers":"latest"},"_npmOperationalInternal":{"tmp":"tmp/package-dts_1.0.39_1595743968256_0.3865269568578038","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":1595743968440,"_cnpm_publish_time":1595743968440,"dist-tags":{"latest":"3.0.15"}}