{"_id":"local-pkg","_rev":"3825375","name":"local-pkg","description":"Get information on local packages.","dist-tags":{"latest":"1.1.2"},"maintainers":[{"name":"antfu","email":""},{"name":"sxzz","email":"sxzz@sxzz.moe"}],"time":{"modified":"2025-08-26T22:17:44.000Z","created":"2021-09-27T20:27:37.684Z","1.1.2":"2025-08-20T00:17:18.265Z","1.1.1":"2025-03-03T13:10:22.922Z","1.1.0":"2025-02-27T09:37:56.283Z","1.0.0":"2025-01-09T09:50:40.635Z","0.5.1":"2024-11-19T01:39:38.645Z","0.5.0":"2023-10-01T08:22:48.472Z","0.4.3":"2023-01-19T15:05:41.580Z","0.4.2":"2022-07-12T04:46:46.083Z","0.4.1":"2022-01-04T21:18:55.396Z","0.4.0":"2021-10-13T06:11:53.122Z","0.3.0":"2021-10-01T23:34:18.251Z","0.2.0":"2021-10-01T23:15:04.733Z","0.1.0":"2021-09-28T00:44:20.693Z","0.0.1":"2021-09-27T21:13:03.095Z","0.0.0":"2021-09-27T20:27:37.684Z"},"users":{},"author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"repository":{"type":"git","url":"git+https://github.com/antfu-collective/local-pkg.git"},"versions":{"1.1.2":{"name":"local-pkg","type":"module","version":"1.1.2","description":"Get information on local packages.","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","funding":"https://github.com/sponsors/antfu","homepage":"https://github.com/antfu-collective/local-pkg#readme","repository":{"type":"git","url":"git+https://github.com/antfu-collective/local-pkg.git"},"bugs":{"url":"https://github.com/antfu-collective/local-pkg/issues"},"keywords":["package"],"sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","engines":{"node":">=14"},"dependencies":{"mlly":"^1.7.4","pkg-types":"^2.3.0","quansync":"^0.2.11"},"devDependencies":{"@antfu/eslint-config":"^5.2.1","@antfu/ni":"^25.0.0","@antfu/utils":"^9.2.0","@types/chai":"^5.2.2","@types/node":"^24.3.0","bumpp":"^10.2.3","chai":"^5.3.1","eslint":"^9.33.0","esno":"^4.8.0","find-up-simple":"^1.0.1","typescript":"^5.9.2","unbuild":"^3.6.1","unplugin-quansync":"^0.4.4","vitest":"^3.2.4"},"scripts":{"build":"unbuild","lint":"eslint .","release":"bumpp","typecheck":"tsc --noEmit","test":"vitest run && node ./test/cjs.cjs && node ./test/esm.mjs"},"_id":"local-pkg@1.1.2","_integrity":"sha512-arhlxbFRmoQHl33a0Zkle/YWlmNwoyt6QNZEIJcqNbdrsix5Lvc4HyyI3EnwxTYlZYc32EbYrQ8SzEZ7dqgg9A==","_resolved":"/tmp/2f481173b2f85fa6b27db01d8a5b4e43/local-pkg-1.1.2.tgz","_from":"file:local-pkg-1.1.2.tgz","_nodeVersion":"22.18.0","_npmVersion":"11.5.2","dist":{"shasum":"c03d208787126445303f8161619dc701afa4abb5","size":4445,"noattachment":false,"key":"/local-pkg/-/local-pkg-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/local-pkg/download/local-pkg-1.1.2.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:92682d5a-39b3-4d95-8271-359bd48ff881"}},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"sxzz","email":"sxzz@sxzz.moe"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/local-pkg_1.1.2_1755649038057_0.38305960160267727"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-08-20T00:17:18.265Z","publish_time":1755649038265,"_source_registry_name":"default","_cnpm_publish_time":1755649038265},"1.1.1":{"name":"local-pkg","type":"module","version":"1.1.1","packageManager":"pnpm@10.5.2","description":"Get information on local packages.","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","funding":"https://github.com/sponsors/antfu","homepage":"https://github.com/antfu/local-pkg#readme","repository":{"type":"git","url":"git+https://github.com/antfu/local-pkg.git"},"bugs":{"url":"https://github.com/antfu/local-pkg/issues"},"keywords":["package"],"sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","engines":{"node":">=14"},"scripts":{"prepublishOnly":"nr build","build":"unbuild","lint":"eslint .","release":"bumpp && npm publish","typecheck":"tsc --noEmit","test":"vitest run && node ./test/cjs.cjs && node ./test/esm.mjs"},"dependencies":{"mlly":"^1.7.4","pkg-types":"^2.0.1","quansync":"^0.2.8"},"devDependencies":{"@antfu/eslint-config":"^4.4.0","@antfu/ni":"^23.3.1","@antfu/utils":"^9.1.0","@types/chai":"^5.0.1","@types/node":"^22.13.8","bumpp":"^10.0.3","chai":"^5.2.0","eslint":"^9.21.0","esno":"^4.8.0","find-up-simple":"^1.0.1","typescript":"^5.8.2","unbuild":"^3.5.0","unplugin-quansync":"^0.3.3","vitest":"^3.0.7"},"pnpm":{"onlyBuiltDependencies":["esbuild"]},"_id":"local-pkg@1.1.1","gitHead":"c6d5c458d44075c71e1165a8069aac04887541fd","_nodeVersion":"22.14.0","_npmVersion":"11.1.0","dist":{"shasum":"f5fe74a97a3bd3c165788ee08ca9fbe998dc58dd","size":4486,"noattachment":false,"key":"/local-pkg/-/local-pkg-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/local-pkg/download/local-pkg-1.1.1.tgz"},"_npmUser":{"name":"sxzz","email":"sxzz@sxzz.moe"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"sxzz","email":"sxzz@sxzz.moe"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/local-pkg_1.1.1_1741007422620_0.4259079820668983"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-03-03T13:10:22.922Z","publish_time":1741007422922,"_source_registry_name":"default","_cnpm_publish_time":1741007422922},"1.1.0":{"name":"local-pkg","type":"module","version":"1.1.0","packageManager":"pnpm@10.4.1","description":"Get information on local packages.","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","funding":"https://github.com/sponsors/antfu","homepage":"https://github.com/antfu/local-pkg#readme","repository":{"type":"git","url":"git+https://github.com/antfu/local-pkg.git"},"bugs":{"url":"https://github.com/antfu/local-pkg/issues"},"keywords":["package"],"sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","engines":{"node":">=14"},"scripts":{"prepublishOnly":"nr build","build":"unbuild","lint":"eslint .","release":"bumpp && npm publish","typecheck":"tsc --noEmit","test":"vitest run && node ./test/cjs.cjs && node ./test/esm.mjs"},"dependencies":{"mlly":"^1.7.4","pkg-types":"^1.3.1","quansync":"^0.2.1"},"devDependencies":{"@antfu/eslint-config":"^4.3.0","@antfu/ni":"^23.3.1","@antfu/utils":"^9.1.0","@types/chai":"^5.0.1","@types/node":"^22.13.5","bumpp":"^10.0.3","chai":"^5.2.0","eslint":"^9.21.0","esno":"^4.8.0","find-up-simple":"^1.0.0","typescript":"^5.7.3","unbuild":"^3.3.1","unplugin-quansync":"^0.3.0","vitest":"^3.0.6"},"pnpm":{"onlyBuiltDependencies":["esbuild"]},"_id":"local-pkg@1.1.0","gitHead":"793484159ef41f64093df3b7971dd5a890177091","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"shasum":"b24ea31ae10529b83f015180e3d2e6a16246188b","size":4451,"noattachment":false,"key":"/local-pkg/-/local-pkg-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/local-pkg/download/local-pkg-1.1.0.tgz"},"_npmUser":{"name":"sxzz","email":"sxzz@sxzz.moe"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"sxzz","email":"sxzz@sxzz.moe"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/local-pkg_1.1.0_1740649076061_0.3236576692693822"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-02-27T09:37:56.283Z","publish_time":1740649076283,"_source_registry_name":"default","_cnpm_publish_time":1740649076283},"1.0.0":{"name":"local-pkg","type":"module","version":"1.0.0","packageManager":"pnpm@9.15.3","description":"Get information on local packages.","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","funding":"https://github.com/sponsors/antfu","homepage":"https://github.com/antfu/local-pkg#readme","repository":{"type":"git","url":"git+https://github.com/antfu/local-pkg.git"},"bugs":{"url":"https://github.com/antfu/local-pkg/issues"},"keywords":["package"],"sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","engines":{"node":">=14"},"scripts":{"prepublishOnly":"nr build","build":"unbuild","lint":"eslint .","release":"bumpp && npm publish","typecheck":"tsc --noEmit","test":"vitest run && node ./test/cjs.cjs && node ./test/esm.mjs"},"dependencies":{"mlly":"^1.7.3","pkg-types":"^1.3.0"},"devDependencies":{"@antfu/eslint-config":"^3.12.2","@antfu/ni":"^23.2.0","@antfu/utils":"^8.0.0","@types/chai":"^5.0.1","@types/node":"^22.10.5","bumpp":"^9.10.0","chai":"^5.1.2","eslint":"^9.17.0","esno":"^4.8.0","find-up-simple":"^1.0.0","typescript":"^5.7.3","unbuild":"^3.2.0","vitest":"^2.1.8"},"_id":"local-pkg@1.0.0","gitHead":"9b9caa9705c3ca40d68b37cd9e39204e6bafcaa6","_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"shasum":"a8d14dd41e78884f199ecd8b3eedaf0d376e2167","size":4115,"noattachment":false,"key":"/local-pkg/-/local-pkg-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/local-pkg/download/local-pkg-1.0.0.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"sxzz","email":"sxzz@sxzz.moe"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/local-pkg_1.0.0_1736416240460_0.7638012517067181"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-01-09T09:50:40.635Z","publish_time":1736416240635,"_source_registry_name":"default","_cnpm_publish_time":1736416240635},"0.5.1":{"name":"local-pkg","type":"module","version":"0.5.1","packageManager":"pnpm@9.13.2","description":"Get information on local packages.","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","funding":"https://github.com/sponsors/antfu","homepage":"https://github.com/antfu/local-pkg#readme","repository":{"type":"git","url":"git+https://github.com/antfu/local-pkg.git"},"bugs":{"url":"https://github.com/antfu/local-pkg/issues"},"keywords":["package"],"sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","engines":{"node":">=14"},"scripts":{"prepublishOnly":"nr build","build":"unbuild","lint":"eslint .","release":"bumpp && npm publish","typecheck":"tsc --noEmit","test":"vitest run && node ./test/cjs.cjs && node ./test/esm.mjs"},"dependencies":{"mlly":"^1.7.3","pkg-types":"^1.2.1"},"devDependencies":{"@antfu/eslint-config":"^3.9.2","@antfu/ni":"^0.23.1","@antfu/utils":"^0.7.10","@types/chai":"^5.0.1","@types/node":"^22.9.0","bumpp":"^9.8.1","chai":"^5.1.2","eslint":"^9.15.0","esno":"^4.8.0","find-up":"^6.3.0","typescript":"^5.6.3","unbuild":"^2.0.0","vitest":"^2.1.5"},"_id":"local-pkg@0.5.1","gitHead":"0b91880c3a9accfca1e372ab0faf0de3fcc0cbab","_nodeVersion":"20.18.0","_npmVersion":"10.8.2","dist":{"shasum":"69658638d2a95287534d4c2fff757980100dbb6d","size":5932,"noattachment":false,"key":"/local-pkg/-/local-pkg-0.5.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/local-pkg/download/local-pkg-0.5.1.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"sxzz","email":"sxzz@sxzz.moe"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/local-pkg_0.5.1_1731980378495_0.8418024127862362"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-11-19T01:39:38.645Z","publish_time":1731980378645,"_source_registry_name":"default","_cnpm_publish_time":1731980378645},"0.5.0":{"name":"local-pkg","type":"module","version":"0.5.0","packageManager":"pnpm@8.8.0","description":"Get information on local packages.","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","funding":"https://github.com/sponsors/antfu","homepage":"https://github.com/antfu/local-pkg#readme","repository":{"type":"git","url":"git+https://github.com/antfu/local-pkg.git"},"bugs":{"url":"https://github.com/antfu/local-pkg/issues"},"keywords":["package"],"sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","engines":{"node":">=14"},"scripts":{"prepublishOnly":"nr build","build":"unbuild","lint":"eslint .","release":"bumpp && npm publish","typecheck":"tsc --noEmit","test":"vitest run && node ./test/cjs.cjs && node ./test/esm.mjs"},"dependencies":{"mlly":"^1.4.2","pkg-types":"^1.0.3"},"devDependencies":{"@antfu/eslint-config":"^1.0.0-beta.18","@antfu/ni":"^0.21.8","@antfu/utils":"^0.7.6","@types/chai":"^4.3.6","@types/node":"^20.8.0","bumpp":"^9.2.0","chai":"^4.3.10","eslint":"^8.50.0","esno":"^0.17.0","find-up":"^6.3.0","typescript":"^5.2.2","unbuild":"^2.0.0","vitest":"^0.34.6"},"gitHead":"46a468e1c5406c34cffd890685b8721e6c569dc0","_id":"local-pkg@0.5.0","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"shasum":"093d25a346bae59a99f80e75f6e9d36d7e8c925c","size":5653,"noattachment":false,"key":"/local-pkg/-/local-pkg-0.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/local-pkg/download/local-pkg-0.5.0.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"sxzz","email":"sxzz@sxzz.moe"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/local-pkg_0.5.0_1696148568276_0.236702257741221"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-01T08:22:48.472Z","publish_time":1696148568472,"_source_registry_name":"default","_cnpm_publish_time":1696148568472},"0.4.3":{"name":"local-pkg","version":"0.4.3","packageManager":"pnpm@7.5.0","description":"Get information on local packages.","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","funding":"https://github.com/sponsors/antfu","homepage":"https://github.com/antfu/local-pkg#readme","repository":{"type":"git","url":"git+https://github.com/antfu/local-pkg.git"},"bugs":{"url":"https://github.com/antfu/local-pkg/issues"},"keywords":["package"],"sideEffects":false,"exports":{".":{"types":"./index.d.ts","require":"./index.cjs","import":"./index.mjs"}},"main":"index.cjs","module":"index.mjs","types":"index.d.ts","engines":{"node":">=14"},"scripts":{"prepublishOnly":"nr build","build":"tsup shared.ts --format esm,cjs --dts && esno scripts/postbuild.ts","lint":"eslint .","release":"bumpp && npm publish","test":"node test/cjs.cjs && node test/esm.mjs"},"devDependencies":{"@antfu/eslint-config":"^0.34.1","@antfu/ni":"^0.18.8","@antfu/utils":"^0.7.2","@types/chai":"^4.3.4","@types/node":"^18.11.18","bumpp":"^8.2.1","chai":"^4.3.7","eslint":"^8.32.0","esno":"^0.16.3","find-up":"^6.3.0","tsup":"^6.5.0","typescript":"^4.9.4"},"gitHead":"e707712fa952eef4fbf5be9c252ce4db88c4ffc1","_id":"local-pkg@0.4.3","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"shasum":"0ff361ab3ae7f1c19113d9bb97b98b905dbc4963","size":6262,"noattachment":false,"key":"/local-pkg/-/local-pkg-0.4.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/local-pkg/download/local-pkg-0.4.3.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"sxzz","email":"sxzz@sxzz.moe"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/local-pkg_0.4.3_1674140741426_0.726364648467009"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-19T15:05:41.580Z","publish_time":1674140741580,"_cnpm_publish_time":1674140741580},"0.4.2":{"name":"local-pkg","version":"0.4.2","packageManager":"pnpm@7.5.0","description":"Get information on local packages.","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","funding":"https://github.com/sponsors/antfu","homepage":"https://github.com/antfu/local-pkg#readme","repository":{"type":"git","url":"git+https://github.com/antfu/local-pkg.git"},"bugs":{"url":"https://github.com/antfu/local-pkg/issues"},"keywords":["package"],"sideEffects":false,"exports":{".":{"require":"./index.cjs","import":"./index.mjs"}},"main":"index.cjs","module":"index.mjs","types":"index.d.ts","engines":{"node":">=14"},"scripts":{"prepublishOnly":"nr build","build":"tsup shared.ts --format esm,cjs --dts && esno scripts/postbuild.ts","lint":"eslint .","release":"bumpp && npm publish","test":"node test/cjs.cjs && node test/esm.mjs"},"devDependencies":{"@antfu/eslint-config":"^0.25.2","@antfu/ni":"^0.16.3","@antfu/utils":"^0.5.2","@types/chai":"^4.3.1","@types/node":"^18.0.3","bumpp":"^8.2.1","chai":"^4.3.6","eslint":"^8.19.0","esno":"^0.16.3","find-up":"^6.3.0","tsup":"^6.1.3","typescript":"^4.7.4"},"gitHead":"f1d3c3fcea3aa058c1676ec8cdfee784e18c8aa6","_id":"local-pkg@0.4.2","_nodeVersion":"16.14.2","_npmVersion":"8.8.0","dist":{"shasum":"13107310b77e74a0e513147a131a2ba288176c2f","size":5975,"noattachment":false,"key":"/local-pkg/-/local-pkg-0.4.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/local-pkg/download/local-pkg-0.4.2.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"sxzz","email":"sxzz@sxzz.moe"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/local-pkg_0.4.2_1657601205842_0.09945404599426677"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-12T04:46:55.427Z","publish_time":1657601206083,"_cnpm_publish_time":1657601206083},"0.4.1":{"name":"local-pkg","version":"0.4.1","description":"Get information on local packages.","keywords":["package"],"engines":{"node":">=14"},"homepage":"https://github.com/antfu/local-pkg#readme","bugs":{"url":"https://github.com/antfu/local-pkg/issues"},"repository":{"type":"git","url":"git+https://github.com/antfu/local-pkg.git"},"funding":{"url":"https://github.com/sponsors/antfu"},"license":"MIT","author":"Anthony Fu <anthonyfu117@hotmail.com>","sideEffects":false,"exports":{".":{"require":"./index.cjs","import":"./index.mjs"}},"main":"index.cjs","module":"index.mjs","types":"index.d.ts","devDependencies":{"@antfu/eslint-config":"^0.7.0","@antfu/ni":"^0.7.0","@antfu/utils":"^0.3.0","@types/chai":"^4.2.22","@types/node":"^16.7.1","bumpp":"^6.0.6","chai":"^4.3.4","eslint":"^7.32.0","esno":"^0.9.1","find-up":"^6.1.0","tsup":"^5.2.1","typescript":"^4.3.5"},"scripts":{"build":"tsup shared.ts --format esm,cjs --dts && esno scripts/postbuild.ts","release":"bumpp --commit --push --tag && pnpm publish","test":"node test/cjs.cjs && node test/esm.mjs"},"_id":"local-pkg@0.4.1","_integrity":"sha512-lL87ytIGP2FU5PWwNDo0w3WhIo2gopIAxPg9RxDYF7m4rr5ahuZxP22xnJHIvaLTe4Z9P6uKKY2UHiwyB4pcrw==","_resolved":"/Users/antfu/i/local-pkg/local-pkg-0.4.1.tgz","_from":"file:local-pkg-0.4.1.tgz","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"shasum":"e7b0d7aa0b9c498a1110a5ac5b00ba66ef38cfff","size":6335,"noattachment":false,"key":"/local-pkg/-/local-pkg-0.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/local-pkg/download/local-pkg-0.4.1.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"sxzz","email":"sxzz@sxzz.moe"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/local-pkg_0.4.1_1641331135243_0.22895767415561363"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-01-04T21:19:02.125Z","publish_time":1641331135396,"_cnpm_publish_time":1641331135396},"0.4.0":{"name":"local-pkg","version":"0.4.0","description":"Get information on local packages.","keywords":["package"],"engines":{"node":">=14"},"homepage":"https://github.com/antfu/local-pkg#readme","bugs":{"url":"https://github.com/antfu/local-pkg/issues"},"repository":{"type":"git","url":"git+https://github.com/antfu/local-pkg.git"},"funding":{"url":"https://github.com/sponsors/antfu"},"license":"MIT","author":"Anthony Fu <anthonyfu117@hotmail.com>","sideEffects":false,"exports":{".":{"require":"./index.cjs","import":"./index.mjs"}},"main":"index.cjs","module":"index.mjs","types":"index.d.ts","dependencies":{"mlly":"^0.2.2"},"devDependencies":{"@antfu/eslint-config":"^0.7.0","@antfu/ni":"^0.7.0","@antfu/utils":"^0.3.0","@types/chai":"^4.2.22","@types/node":"^16.7.1","bumpp":"^6.0.6","chai":"^4.3.4","eslint":"^7.32.0","esno":"^0.9.1","find-up":"^6.1.0","tsup":"^5.2.1","typescript":"^4.3.5"},"scripts":{"build":"tsup shared.ts --format esm,cjs --dts && esno scripts/postbuild.ts","release":"bumpp --commit --push --tag && pnpm publish","test":"node test/cjs.cjs && node test/esm.mjs"},"_id":"local-pkg@0.4.0","_integrity":"sha512-2XBWjO/v63JeR1HPzLJxdTVRQDB84Av2p2KtBA5ahvpyLUPubcAU6iXlAJrONcY7aSqgJhXxElAnKtnYsRolPQ==","_resolved":"/Users/antfu/i/local-pkg/local-pkg-0.4.0.tgz","_from":"file:local-pkg-0.4.0.tgz","_nodeVersion":"16.6.2","_npmVersion":"7.20.3","dist":{"shasum":"e6221171813d5a0812dd84fa80ffb1c8fcc00531","size":6122,"noattachment":false,"key":"/local-pkg/-/local-pkg-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/local-pkg/download/local-pkg-0.4.0.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"sxzz","email":"sxzz@sxzz.moe"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/local-pkg_0.4.0_1634105512996_0.5104884854499401"},"_hasShrinkwrap":false,"publish_time":1634105513122,"_cnpm_publish_time":1634105513122},"0.3.0":{"name":"local-pkg","version":"0.3.0","description":"Get information on local packages.","keywords":["package"],"engines":{"node":">=14"},"homepage":"https://github.com/antfu/local-pkg#readme","bugs":{"url":"https://github.com/antfu/local-pkg/issues"},"repository":{"type":"git","url":"git+https://github.com/antfu/local-pkg.git"},"funding":{"url":"https://github.com/sponsors/antfu"},"license":"MIT","author":"Anthony Fu <anthonyfu117@hotmail.com>","sideEffects":false,"exports":{".":{"require":"./index.cjs","import":"./index.mjs"}},"main":"index.cjs","module":"index.mjs","types":"index.d.ts","dependencies":{"mlly":"^0.2.2"},"devDependencies":{"@antfu/eslint-config":"^0.7.0","@antfu/ni":"^0.7.0","@antfu/utils":"^0.3.0","@types/chai":"^4.2.22","@types/node":"^16.7.1","bumpp":"^6.0.6","chai":"^4.3.4","eslint":"^7.32.0","esno":"^0.9.1","find-up":"^6.1.0","tsup":"^5.2.1","typescript":"^4.3.5"},"scripts":{"build":"tsup shared.ts --format esm,cjs --dts && esno scripts/postbuild.ts","release":"bumpp --commit --push --tag && pnpm publish","test":"node test/cjs.cjs && node test/esm.mjs"},"_id":"local-pkg@0.3.0","_integrity":"sha512-JapWObmC38atpkIh2Y8M3223TP+GsdtR4s28Kut7Q98PT6MX7VwvAwPs2/rxpwi+hbDiHM4+dIvRCU67k+qHag==","_resolved":"/Users/antfu/i/local-pkg/local-pkg-0.3.0.tgz","_from":"file:local-pkg-0.3.0.tgz","_nodeVersion":"16.6.2","_npmVersion":"7.20.3","dist":{"shasum":"9f43ea682a085f0a63a184a8aaed109ae02483ce","size":6095,"noattachment":false,"key":"/local-pkg/-/local-pkg-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/local-pkg/download/local-pkg-0.3.0.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"sxzz","email":"sxzz@sxzz.moe"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/local-pkg_0.3.0_1633131258064_0.3405642263830564"},"_hasShrinkwrap":false,"publish_time":1633131258251,"_cnpm_publish_time":1633131258251},"0.2.0":{"name":"local-pkg","version":"0.2.0","description":"Get information on local packages.","keywords":["package"],"homepage":"https://github.com/antfu/local-pkg#readme","bugs":{"url":"https://github.com/antfu/local-pkg/issues"},"repository":{"type":"git","url":"git+https://github.com/antfu/local-pkg.git"},"funding":{"url":"https://github.com/sponsors/antfu"},"license":"MIT","author":"Anthony Fu <anthonyfu117@hotmail.com>","sideEffects":false,"exports":{".":{"require":"./index.cjs","import":"./index.mjs"}},"main":"index.cjs","module":"index.mjs","types":"index.d.ts","dependencies":{"mlly":"^0.2.2"},"devDependencies":{"@antfu/eslint-config":"^0.7.0","@antfu/ni":"^0.7.0","@antfu/utils":"^0.3.0","@types/chai":"^4.2.22","@types/node":"^16.7.1","bumpp":"^6.0.6","chai":"^4.3.4","eslint":"^7.32.0","esno":"^0.9.1","find-up":"^6.1.0","tsup":"^5.2.1","typescript":"^4.3.5"},"scripts":{"build":"tsup shared.ts --format esm,cjs --dts && esno scripts/postbuild.ts","release":"bumpp --commit --push --tag && pnpm publish","test":"node test/cjs.cjs && node test/esm.mjs"},"_id":"local-pkg@0.2.0","_integrity":"sha512-M5/pqEFIQcxI19YYwHvEh2mNYjmreUlaCMwfl/8qboqwWoPFhi2kEh1lVrJu03D6ROS2iiwi7g0Cdn7MSh4y9A==","_resolved":"/Users/antfu/i/local-pkg/local-pkg-0.2.0.tgz","_from":"file:local-pkg-0.2.0.tgz","_nodeVersion":"16.6.2","_npmVersion":"7.20.3","dist":{"shasum":"3e92f1254d5ff5e90bb55a5e2474a634a853eaa1","size":6079,"noattachment":false,"key":"/local-pkg/-/local-pkg-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/local-pkg/download/local-pkg-0.2.0.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"sxzz","email":"sxzz@sxzz.moe"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/local-pkg_0.2.0_1633130104561_0.7490005827881627"},"_hasShrinkwrap":false,"publish_time":1633130104733,"_cnpm_publish_time":1633130104733},"0.1.0":{"name":"local-pkg","version":"0.1.0","description":"Get information on local packages.","main":"index.cjs","module":"index.mjs","types":"index.d.ts","exports":{".":{"require":"./index.cjs","import":"./index.mjs"}},"funding":"https://github.com/sponsors/antfu","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","sideEffects":false,"bugs":{"url":"https://github.com/antfu/local-pkg/issues"},"homepage":"https://github.com/antfu/local-pkg#readme","repository":{"type":"git","url":"git+https://github.com/antfu/local-pkg.git"},"keywords":["package"],"scripts":{"release":"bumpp --commit --push --tag && pnpm publish","test":"node test/cjs.cjs && node test/esm.mjs"},"devDependencies":{"@antfu/eslint-config":"^0.7.0","@antfu/ni":"^0.7.0","@antfu/utils":"^0.3.0","@types/chai":"^4.2.22","@types/jasmine":"^3.9.1","@types/node":"^16.7.1","bumpp":"^6.0.6","chai":"^4.3.4","eslint":"^7.32.0","esno":"^0.9.1","jasmine":"^3.9.0","typescript":"^4.3.5","uvu":"^0.5.1"},"dependencies":{"mlly":"^0.2.2"},"gitHead":"b15a1e9bdaec76c83707e17b2956f97e49047176","_id":"local-pkg@0.1.0","_nodeVersion":"16.6.2","_npmVersion":"7.20.3","dist":{"shasum":"7422b2ae8fc1e3b9ef2f132b0a0e92d879df52ef","size":2720,"noattachment":false,"key":"/local-pkg/-/local-pkg-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/local-pkg/download/local-pkg-0.1.0.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"sxzz","email":"sxzz@sxzz.moe"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/local-pkg_0.1.0_1632789860550_0.1447144521681496"},"_hasShrinkwrap":false,"publish_time":1632789860693,"_cnpm_publish_time":1632789860693},"0.0.1":{"name":"local-pkg","version":"0.0.1","description":"","main":"index.cjs","module":"index.mjs","types":"index.d.ts","exports":{".":{"require":"./index.cjs","import":"./index.mjs"}},"funding":{"url":"https://github.com/sponsors/antfu"},"author":"Anthony Fu <anthonyfu117@hotmail.com>","license":"MIT","sideEffects":false,"bugs":{"url":"https://github.com/antfu/local-pkg/issues"},"homepage":"https://github.com/antfu/local-pkg#readme","repository":{"type":"git","url":"git+https://github.com/antfu/local-pkg.git"},"keywords":["package"],"devDependencies":{"@antfu/eslint-config":"^0.7.0","@antfu/ni":"^0.7.0","@antfu/utils":"^0.3.0","@types/chai":"^4.2.22","@types/jasmine":"^3.9.1","@types/node":"^16.7.1","bumpp":"^6.0.6","chai":"^4.3.4","eslint":"^7.32.0","esno":"^0.9.1","jasmine":"^3.9.0","typescript":"^4.3.5","uvu":"^0.5.1"},"dependencies":{"mlly":"^0.2.2"},"scripts":{"release":"bumpp --commit --push --tag && pnpm publish","test":"node test/cjs.cjs && node test/esm.mjs"},"_id":"local-pkg@0.0.1","_integrity":"sha512-0LbcrI8fUlGJEXjErIvDzFtwUA+hKa33iZouv+PrmjER0+6zjQAoUHMa5NRoOFy64TxqH/nFWeIebFGbVNoi9w==","_resolved":"/Users/antfu/i/local-pkg/local-pkg-0.0.1.tgz","_from":"file:local-pkg-0.0.1.tgz","_nodeVersion":"16.6.2","_npmVersion":"7.20.3","dist":{"shasum":"37cf0d46ef2da0230d6e8a0bcd3be6ac0b651b16","size":2486,"noattachment":false,"key":"/local-pkg/-/local-pkg-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/local-pkg/download/local-pkg-0.0.1.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"sxzz","email":"sxzz@sxzz.moe"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/local-pkg_0.0.1_1632777182950_0.7812009375135454"},"_hasShrinkwrap":false,"publish_time":1632777183095,"_cnpm_publish_time":1632777183095},"0.0.0":{"name":"local-pkg","version":"0.0.0","description":"[![NPM version](https://img.shields.io/npm/v/local-pkg?color=a1b858&label=)](https://www.npmjs.com/package/local-pkg)","main":"index.cjs","module":"index.mjs","types":"index.d.ts","exports":{".":{"require":"./index.cjs","import":"./index.mjs"}},"funding":"https://github.com/sponsors/antfu","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","sideEffects":false,"bugs":{"url":"https://github.com/antfu/local-pkg/issues"},"homepage":"https://github.com/antfu/local-pkg#readme","repository":{"type":"git","url":"git+https://github.com/antfu/local-pkg.git"},"keywords":["package"],"scripts":{"release":"bumpp --commit --push --tag && pnpm publish","test":"node test/cjs.cjs && node test/esm.mjs"},"devDependencies":{"@antfu/eslint-config":"^0.7.0","@antfu/ni":"^0.7.0","@types/chai":"^4.2.22","@types/jasmine":"^3.9.1","@types/node":"^16.7.1","bumpp":"^6.0.6","chai":"^4.3.4","eslint":"^7.32.0","esno":"^0.9.1","jasmine":"^3.9.0","typescript":"^4.3.5","uvu":"^0.5.1"},"dependencies":{"mlly":"^0.2.2"},"gitHead":"71a861e6c4846864a746f9be9ad01f4ae0c53d01","_id":"local-pkg@0.0.0","_nodeVersion":"16.6.2","_npmVersion":"7.20.3","dist":{"shasum":"7c6a32d9293f29b5d3106ca04109e5c4ee6d0249","size":2334,"noattachment":false,"key":"/local-pkg/-/local-pkg-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/local-pkg/download/local-pkg-0.0.0.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"sxzz","email":"sxzz@sxzz.moe"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/local-pkg_0.0.0_1632774457550_0.9650247235879623"},"_hasShrinkwrap":false,"publish_time":1632774457684,"_cnpm_publish_time":1632774457684}},"readme":"# local-pkg\n\n[![NPM version](https://img.shields.io/npm/v/local-pkg?color=a1b858&label=)](https://www.npmjs.com/package/local-pkg)\n\nGet information on local packages. Works on both CJS and ESM.\n\n## Install\n\n```bash\nnpm i local-pkg\n```\n\n## Usage\n\n```ts\nimport {\n  getPackageInfo,\n  importModule,\n  isPackageExists,\n  resolveModule,\n} from 'local-pkg'\n\nisPackageExists('local-pkg') // true\nisPackageExists('foo') // false\n\nawait getPackageInfo('local-pkg')\n/* {\n *   name: \"local-pkg\",\n *   version: \"0.1.0\",\n *   rootPath: \"/path/to/node_modules/local-pkg\",\n *   packageJson: {\n *     ...\n *   }\n * }\n */\n\n// similar to `require.resolve` but works also in ESM\nresolveModule('local-pkg')\n// '/path/to/node_modules/local-pkg/dist/index.cjs'\n\n// similar to `await import()` but works also in CJS\nconst { importModule } = await importModule('local-pkg')\n```\n\n## Sponsors\n\n<p align=\"center\">\n  <a href=\"https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg\">\n    <img src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg'/>\n  </a>\n</p>\n\n## License\n\n[MIT](./LICENSE) License © 2021 [Anthony Fu](https://github.com/antfu)\n","_attachments":{},"homepage":"https://github.com/antfu-collective/local-pkg#readme","bugs":{"url":"https://github.com/antfu-collective/local-pkg/issues"},"license":"MIT"}