{"_id":"napi-postinstall","_rev":"3950865","name":"napi-postinstall","description":"The `postinstall` script helper for handling native bindings in legacy `npm` versions","dist-tags":{"latest":"0.3.3"},"maintainers":[{"name":"jounqin","email":""}],"time":{"modified":"2025-09-01T01:37:24.000Z","created":"2025-04-19T19:30:34.770Z","0.3.3":"2025-08-09T13:43:24.428Z","0.3.2":"2025-07-18T18:55:34.904Z","0.3.0":"2025-07-02T17:18:14.005Z","0.2.5":"2025-06-28T16:58:19.137Z","0.2.4":"2025-05-13T05:53:26.691Z","0.2.3":"2025-04-28T17:58:59.773Z","0.2.2":"2025-04-27T03:30:42.567Z","0.2.1":"2025-04-26T14:28:24.170Z","0.2.0":"2025-04-26T11:59:37.303Z","0.1.6":"2025-04-24T04:03:22.660Z","0.1.5":"2025-04-20T15:06:27.016Z","0.1.4":"2025-04-20T14:49:02.600Z","0.1.3":"2025-04-20T13:45:27.053Z","0.1.2":"2025-04-20T10:52:48.602Z","0.1.1":"2025-04-19T21:15:22.952Z","0.1.0":"2025-04-19T19:30:34.770Z"},"users":{},"author":{"name":"JounQin","email":"admin@1stg.me","url":"https://www.1stG.me"},"repository":{"type":"git","url":"git+https://github.com/un-ts/napi-postinstall.git"},"versions":{"0.3.3":{"name":"napi-postinstall","version":"0.3.3","type":"commonjs","description":"The `postinstall` script helper for handling native bindings in legacy `npm` versions","repository":{"type":"git","url":"git+https://github.com/un-ts/napi-postinstall.git"},"author":{"name":"JounQin","email":"admin@1stg.me","url":"https://www.1stG.me"},"funding":"https://opencollective.com/napi-postinstall","license":"MIT","engines":{"node":"^12.20.0 || ^14.18.0 || >=16.0.0"},"bin":{"napi-postinstall":"lib/cli.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"},"./fallback":{"types":"./lib/fallback.d.ts","default":"./lib/fallback.js"},"./package.json":"./package.json"},"_id":"napi-postinstall@0.3.3","gitHead":"ac8c14d39a3b3680da3bb88b9f2d8622a1103b82","bugs":{"url":"https://github.com/un-ts/napi-postinstall/issues"},"homepage":"https://github.com/un-ts/napi-postinstall#readme","_nodeVersion":"22.18.0","_npmVersion":"11.5.2","dist":{"shasum":"93d045c6b576803ead126711d3093995198c6eb9","size":15147,"noattachment":false,"key":"/napi-postinstall/-/napi-postinstall-0.3.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/napi-postinstall/download/napi-postinstall-0.3.3.tgz"},"_npmUser":{"name":"jounqin","email":"admin@1stg.me"},"directories":{},"maintainers":[{"name":"jounqin","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/napi-postinstall_0.3.3_1754747004193_0.6693028501856952"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-08-09T13:43:24.428Z","publish_time":1754747004428,"_source_registry_name":"default","_cnpm_publish_time":1754747004428},"0.3.2":{"name":"napi-postinstall","version":"0.3.2","type":"commonjs","description":"The `postinstall` script helper for handling native bindings in legacy `npm` versions","repository":{"type":"git","url":"git+https://github.com/un-ts/napi-postinstall.git"},"author":{"name":"JounQin","email":"admin@1stg.me","url":"https://www.1stG.me"},"funding":"https://opencollective.com/napi-postinstall","license":"MIT","engines":{"node":"^12.20.0 || ^14.18.0 || >=16.0.0"},"bin":{"napi-postinstall":"lib/cli.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"},"./fallback":{"types":"./lib/fallback.d.ts","default":"./lib/fallback.js"},"./package.json":"./package.json"},"_id":"napi-postinstall@0.3.2","gitHead":"38b4e95cf554e2549b9e1e2c4ff6bff4da9a65f9","bugs":{"url":"https://github.com/un-ts/napi-postinstall/issues"},"homepage":"https://github.com/un-ts/napi-postinstall#readme","_nodeVersion":"22.17.0","_npmVersion":"11.4.2","dist":{"shasum":"03c62080e88b311c4d7423b0f15f0c920bbcc626","size":14834,"noattachment":false,"key":"/napi-postinstall/-/napi-postinstall-0.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/napi-postinstall/download/napi-postinstall-0.3.2.tgz"},"_npmUser":{"name":"jounqin","email":"admin@1stg.me"},"directories":{},"maintainers":[{"name":"jounqin","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/napi-postinstall_0.3.2_1752864934728_0.04956213320193492"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-07-18T18:55:34.904Z","publish_time":1752864934904,"_source_registry_name":"default","_cnpm_publish_time":1752864934904},"0.3.0":{"name":"napi-postinstall","version":"0.3.0","type":"commonjs","description":"The `postinstall` script helper for handling native bindings in legacy `npm` versions","repository":{"type":"git","url":"git+https://github.com/un-ts/napi-postinstall.git"},"author":{"name":"JounQin","email":"admin@1stg.me","url":"https://www.1stG.me"},"funding":"https://opencollective.com/napi-postinstall","license":"MIT","engines":{"node":"^12.20.0 || ^14.18.0 || >=16.0.0"},"bin":{"napi-postinstall":"lib/cli.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"},"./fallback":{"types":"./lib/fallback.d.ts","default":"./lib/fallback.js"},"./package.json":"./package.json"},"packageManager":"npm@11.4.2+sha512.f90c1ec8b207b625d6edb6693aef23dacb39c38e4217fe8c46a973f119cab392ac0de23fe3f07e583188dae9fd9108b3845ad6f525b598742bd060ebad60bff3","_id":"napi-postinstall@0.3.0","gitHead":"135b1e93bd783cff9d0eca400643daca3ecdbd01","bugs":{"url":"https://github.com/un-ts/napi-postinstall/issues"},"homepage":"https://github.com/un-ts/napi-postinstall#readme","_nodeVersion":"22.16.0","_npmVersion":"11.4.2","dist":{"shasum":"888e51d1fb500e86dcf6ace1baccdbb377e654ce","size":14979,"noattachment":false,"key":"/napi-postinstall/-/napi-postinstall-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/napi-postinstall/download/napi-postinstall-0.3.0.tgz"},"_npmUser":{"name":"jounqin","email":"admin@1stg.me","actor":{"name":"jounqin","email":"admin@1stg.me","type":"user"}},"directories":{},"maintainers":[{"name":"jounqin","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/napi-postinstall_0.3.0_1751476693827_0.6989943912415644"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-07-02T17:18:14.005Z","publish_time":1751476694005,"_source_registry_name":"default","_cnpm_publish_time":1751476694005},"0.2.5":{"name":"napi-postinstall","version":"0.2.5","type":"commonjs","description":"The `postinstall` script helper for handling native bindings in legacy `npm` versions","repository":{"type":"git","url":"git+https://github.com/un-ts/napi-postinstall.git"},"author":{"name":"JounQin","email":"admin@1stg.me","url":"https://www.1stG.me"},"funding":"https://opencollective.com/napi-postinstall","license":"MIT","engines":{"node":"^12.20.0 || ^14.18.0 || >=16.0.0"},"bin":{"napi-postinstall":"lib/cli.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"packageManager":"npm@11.4.2+sha512.f90c1ec8b207b625d6edb6693aef23dacb39c38e4217fe8c46a973f119cab392ac0de23fe3f07e583188dae9fd9108b3845ad6f525b598742bd060ebad60bff3","_id":"napi-postinstall@0.2.5","gitHead":"254b7401c6b84c4dc5723de054cccae21b1c5aa3","bugs":{"url":"https://github.com/un-ts/napi-postinstall/issues"},"homepage":"https://github.com/un-ts/napi-postinstall#readme","_nodeVersion":"22.16.0","_npmVersion":"11.4.2","dist":{"shasum":"57d8a142f854e5a510c7b71ca101e89c11eddf35","size":13412,"noattachment":false,"key":"/napi-postinstall/-/napi-postinstall-0.2.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/napi-postinstall/download/napi-postinstall-0.2.5.tgz"},"_npmUser":{"name":"jounqin","email":"admin@1stg.me","actor":{"name":"jounqin","email":"admin@1stg.me","type":"user"}},"directories":{},"maintainers":[{"name":"jounqin","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/napi-postinstall_0.2.5_1751129898957_0.2827492740384423"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-06-28T16:58:19.137Z","publish_time":1751129899137,"_source_registry_name":"default","_cnpm_publish_time":1751129899137},"0.2.4":{"name":"napi-postinstall","version":"0.2.4","type":"commonjs","description":"The `postinstall` script helper for handling native bindings in legacy `npm` versions","repository":{"type":"git","url":"git+https://github.com/un-ts/napi-postinstall.git"},"author":{"name":"JounQin","email":"admin@1stg.me","url":"https://www.1stG.me"},"funding":"https://opencollective.com/napi-postinstall","license":"MIT","engines":{"node":"^12.20.0 || ^14.18.0 || >=16.0.0"},"bin":{"napi-postinstall":"lib/cli.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"packageManager":"npm@11.3.0+sha512.96eb611483f49c55f7fa74df61b588de9e213f80a256728e6798ddc67176c7b07e4a1cfc7de8922422cbce02543714367037536955221fa451b0c4fefaf20c66","_id":"napi-postinstall@0.2.4","gitHead":"9ce6cde865d33812ce135dbd1e522272f1fb6dc9","bugs":{"url":"https://github.com/un-ts/napi-postinstall/issues"},"homepage":"https://github.com/un-ts/napi-postinstall#readme","_nodeVersion":"22.15.0","_npmVersion":"11.3.0","dist":{"shasum":"419697d0288cb524623e422f919624f22a5e4028","size":13356,"noattachment":false,"key":"/napi-postinstall/-/napi-postinstall-0.2.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/napi-postinstall/download/napi-postinstall-0.2.4.tgz"},"_npmUser":{"name":"jounqin","email":"admin@1stg.me"},"directories":{},"maintainers":[{"name":"jounqin","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/napi-postinstall_0.2.4_1747115606484_0.26120573180298345"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-05-13T05:53:26.691Z","publish_time":1747115606691,"_source_registry_name":"default","_cnpm_publish_time":1747115606691},"0.2.3":{"name":"napi-postinstall","version":"0.2.3","type":"commonjs","description":"The `postinstall` script helper for handling native bindings in legacy `npm` versions","repository":{"type":"git","url":"git+https://github.com/un-ts/napi-postinstall.git"},"author":{"name":"JounQin","email":"admin@1stg.me","url":"https://www.1stG.me"},"funding":"https://opencollective.com/napi-postinstall","license":"MIT","engines":{"node":"^12.20.0 || ^14.18.0 || >=16.0.0"},"bin":{"napi-postinstall":"lib/cli.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"packageManager":"npm@11.3.0+sha512.96eb611483f49c55f7fa74df61b588de9e213f80a256728e6798ddc67176c7b07e4a1cfc7de8922422cbce02543714367037536955221fa451b0c4fefaf20c66","_id":"napi-postinstall@0.2.3","gitHead":"650548ed219b606fde6dffa1f4e95963f1cc13ba","bugs":{"url":"https://github.com/un-ts/napi-postinstall/issues"},"homepage":"https://github.com/un-ts/napi-postinstall#readme","_nodeVersion":"22.14.0","_npmVersion":"11.3.0","dist":{"shasum":"700171c0b4bd8226124d72d599046ccd1a1174ba","size":13332,"noattachment":false,"key":"/napi-postinstall/-/napi-postinstall-0.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/napi-postinstall/download/napi-postinstall-0.2.3.tgz"},"_npmUser":{"name":"jounqin","email":"admin@1stg.me"},"directories":{},"maintainers":[{"name":"jounqin","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/napi-postinstall_0.2.3_1745863139609_0.8638947229098441"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-28T17:58:59.773Z","publish_time":1745863139773,"_source_registry_name":"default","_cnpm_publish_time":1745863139773},"0.2.2":{"name":"napi-postinstall","version":"0.2.2","type":"commonjs","description":"The `postinstall` script helper for handling native bindings in legacy `npm` versions","repository":{"type":"git","url":"git+https://github.com/un-ts/napi-postinstall.git"},"author":{"name":"JounQin","email":"admin@1stg.me","url":"https://www.1stG.me"},"funding":"https://opencollective.com/napi-postinstall","license":"MIT","engines":{"node":"^12.20.0 || ^14.18.0 || >=16.0.0"},"bin":{"napi-postinstall":"lib/cli.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"packageManager":"npm@11.3.0+sha512.96eb611483f49c55f7fa74df61b588de9e213f80a256728e6798ddc67176c7b07e4a1cfc7de8922422cbce02543714367037536955221fa451b0c4fefaf20c66","_id":"napi-postinstall@0.2.2","gitHead":"10b00af2f37694a80753d52e116581a22f3409de","bugs":{"url":"https://github.com/un-ts/napi-postinstall/issues"},"homepage":"https://github.com/un-ts/napi-postinstall#readme","_nodeVersion":"22.14.0","_npmVersion":"11.3.0","dist":{"shasum":"c80d400a3b760bf7a75f7eabbd5c3fee2f0d60a8","size":13281,"noattachment":false,"key":"/napi-postinstall/-/napi-postinstall-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/napi-postinstall/download/napi-postinstall-0.2.2.tgz"},"_npmUser":{"name":"jounqin","email":"admin@1stg.me"},"directories":{},"maintainers":[{"name":"jounqin","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/napi-postinstall_0.2.2_1745724642360_0.31401481033274714"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-27T03:30:42.567Z","publish_time":1745724642567,"_source_registry_name":"default","_cnpm_publish_time":1745724642567},"0.2.1":{"name":"napi-postinstall","version":"0.2.1","type":"commonjs","description":"The `postinstall` script helper for handling native bindings in legacy `npm` versions","repository":{"type":"git","url":"git+https://github.com/un-ts/napi-postinstall.git"},"author":{"name":"JounQin","email":"admin@1stg.me","url":"https://www.1stG.me"},"funding":"https://opencollective.com/napi-postinstall","license":"MIT","engines":{"node":"^12.20.0 || ^14.18.0 || >=16.0.0"},"bin":{"napi-postinstall":"lib/cli.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"packageManager":"npm@11.3.0+sha512.96eb611483f49c55f7fa74df61b588de9e213f80a256728e6798ddc67176c7b07e4a1cfc7de8922422cbce02543714367037536955221fa451b0c4fefaf20c66","_id":"napi-postinstall@0.2.1","gitHead":"fdd4685a4a3e934e020a63fc9e3264f7a47b5190","bugs":{"url":"https://github.com/un-ts/napi-postinstall/issues"},"homepage":"https://github.com/un-ts/napi-postinstall#readme","_nodeVersion":"22.14.0","_npmVersion":"11.3.0","dist":{"shasum":"0f79f9b606314ffa31be4b0f13aca4f2bf0f0eb4","size":12591,"noattachment":false,"key":"/napi-postinstall/-/napi-postinstall-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/napi-postinstall/download/napi-postinstall-0.2.1.tgz"},"_npmUser":{"name":"jounqin","email":"admin@1stg.me"},"directories":{},"maintainers":[{"name":"jounqin","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/napi-postinstall_0.2.1_1745677704002_0.7803076539859255"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-26T14:28:24.170Z","publish_time":1745677704170,"_source_registry_name":"default","_cnpm_publish_time":1745677704170},"0.2.0":{"name":"napi-postinstall","version":"0.2.0","type":"commonjs","description":"The `postinstall` script helper for handling native bindings in legacy `npm` versions","repository":{"type":"git","url":"git+https://github.com/un-ts/napi-postinstall.git"},"author":{"name":"JounQin","email":"admin@1stg.me","url":"https://www.1stG.me"},"funding":"https://opencollective.com/napi-postinstall","license":"MIT","engines":{"node":"^12.20.0 || ^14.18.0 || >=16.0.0"},"bin":{"napi-postinstall":"lib/cli.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"_id":"napi-postinstall@0.2.0","gitHead":"ca5a744a5e8fbdeace76100ddc61cff0602b48da","bugs":{"url":"https://github.com/un-ts/napi-postinstall/issues"},"homepage":"https://github.com/un-ts/napi-postinstall#readme","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"shasum":"5287f2d85e926ade914688ed3ce29e53efb0036a","size":11884,"noattachment":false,"key":"/napi-postinstall/-/napi-postinstall-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/napi-postinstall/download/napi-postinstall-0.2.0.tgz"},"_npmUser":{"name":"jounqin","email":"admin@1stg.me"},"directories":{},"maintainers":[{"name":"jounqin","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/napi-postinstall_0.2.0_1745668777119_0.2524328256326518"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-26T11:59:37.303Z","publish_time":1745668777303,"_source_registry_name":"default","_cnpm_publish_time":1745668777303},"0.1.6":{"name":"napi-postinstall","version":"0.1.6","type":"commonjs","description":"The `postinstall` script helper for handling native bindings in legacy `npm` versions","repository":{"type":"git","url":"git+https://github.com/un-ts/napi-postinstall.git"},"author":{"name":"JounQin","email":"admin@1stg.me","url":"https://www.1stG.me"},"funding":"https://opencollective.com/napi-postinstall","license":"MIT","engines":{"node":"^12.20.0 || ^14.18.0 || >=16.0.0"},"bin":{"napi-postinstall":"lib/cli.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"_id":"napi-postinstall@0.1.6","gitHead":"b2917626cf9f315afed00384a25354a7958848f9","bugs":{"url":"https://github.com/un-ts/napi-postinstall/issues"},"homepage":"https://github.com/un-ts/napi-postinstall#readme","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"shasum":"7682101f43fc66c233b625ee8ebf07826c6eedde","size":11659,"noattachment":false,"key":"/napi-postinstall/-/napi-postinstall-0.1.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/napi-postinstall/download/napi-postinstall-0.1.6.tgz"},"_npmUser":{"name":"jounqin","email":"admin@1stg.me"},"directories":{},"maintainers":[{"name":"jounqin","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/napi-postinstall_0.1.6_1745467402470_0.2025685946994531"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-24T04:03:22.660Z","publish_time":1745467402660,"_source_registry_name":"default","_cnpm_publish_time":1745467402660},"0.1.5":{"name":"napi-postinstall","version":"0.1.5","type":"commonjs","description":"The `postinstall` script helper for handling native bindings in legacy `npm` versions","repository":{"type":"git","url":"git+https://github.com/un-ts/napi-postinstall.git"},"author":{"name":"JounQin","email":"admin@1stg.me","url":"https://www.1stG.me"},"funding":"https://opencollective.com/napi-postinstall","license":"MIT","engines":{"node":"^12.20.0 || ^14.18.0 || >=16.0.0"},"bin":{"napi-postinstall":"lib/cli.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"_id":"napi-postinstall@0.1.5","gitHead":"bbdef3a10c69c856b47175842eae39374cce7a13","bugs":{"url":"https://github.com/un-ts/napi-postinstall/issues"},"homepage":"https://github.com/un-ts/napi-postinstall#readme","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"shasum":"aba2cc64897c7a061e2f985fd24abe9a183ad979","size":11387,"noattachment":false,"key":"/napi-postinstall/-/napi-postinstall-0.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/napi-postinstall/download/napi-postinstall-0.1.5.tgz"},"_npmUser":{"name":"jounqin","email":"admin@1stg.me"},"directories":{},"maintainers":[{"name":"jounqin","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/napi-postinstall_0.1.5_1745161586845_0.24450757243982868"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-20T15:06:27.016Z","publish_time":1745161587016,"_source_registry_name":"default","_cnpm_publish_time":1745161587016},"0.1.4":{"name":"napi-postinstall","version":"0.1.4","type":"commonjs","description":"The `postinstall` script helper for handling native bindings in legacy `npm` versions","repository":{"type":"git","url":"git+https://github.com/un-ts/napi-postinstall.git"},"author":{"name":"JounQin","email":"admin@1stg.me","url":"https://www.1stG.me"},"funding":"https://opencollective.com/napi-postinstall","license":"MIT","engines":{"node":"^12.20.0 || ^14.18.0 || >=16.0.0"},"bin":{"napi-postinstall":"lib/cli.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"_id":"napi-postinstall@0.1.4","gitHead":"7f209a6a6f9e1502ecc400742183b9ed419175fa","bugs":{"url":"https://github.com/un-ts/napi-postinstall/issues"},"homepage":"https://github.com/un-ts/napi-postinstall#readme","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"shasum":"0a2fffbafe4f30db1adb217ba27da5d11fb1c617","size":11420,"noattachment":false,"key":"/napi-postinstall/-/napi-postinstall-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/napi-postinstall/download/napi-postinstall-0.1.4.tgz"},"_npmUser":{"name":"jounqin","email":"admin@1stg.me"},"directories":{},"maintainers":[{"name":"jounqin","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/napi-postinstall_0.1.4_1745160542389_0.01673097296617998"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-20T14:49:02.600Z","publish_time":1745160542600,"_source_registry_name":"default","_cnpm_publish_time":1745160542600},"0.1.3":{"name":"napi-postinstall","version":"0.1.3","type":"commonjs","description":"The `postinstall` script helper for handling native bindings in legacy `npm` versions","repository":{"type":"git","url":"git+https://github.com/un-ts/napi-postinstall.git"},"author":{"name":"JounQin","email":"admin@1stg.me","url":"https://www.1stG.me"},"funding":"https://opencollective.com/napi-postinstall","license":"MIT","engines":{"node":"^12.20.0 || ^14.18.0 || >=16.0.0"},"bin":{"napi-postinstall":"lib/cli.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"_id":"napi-postinstall@0.1.3","gitHead":"43295263332919a8e7715ff8d9a0f39958005932","bugs":{"url":"https://github.com/un-ts/napi-postinstall/issues"},"homepage":"https://github.com/un-ts/napi-postinstall#readme","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"shasum":"1443aef7976846af7ab6deacfd597b76f83f3c75","size":11352,"noattachment":false,"key":"/napi-postinstall/-/napi-postinstall-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/napi-postinstall/download/napi-postinstall-0.1.3.tgz"},"_npmUser":{"name":"jounqin","email":"admin@1stg.me"},"directories":{},"maintainers":[{"name":"jounqin","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/napi-postinstall_0.1.3_1745156726836_0.3392434334932224"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-20T13:45:27.053Z","publish_time":1745156727053,"_source_registry_name":"default","_cnpm_publish_time":1745156727053},"0.1.2":{"name":"napi-postinstall","version":"0.1.2","type":"commonjs","description":"The `postinstall` script helper for handling native bindings in legacy `npm` versions","repository":{"type":"git","url":"git+https://github.com/un-ts/napi-postinstall.git"},"author":{"name":"JounQin","email":"admin@1stg.me","url":"https://www.1stG.me"},"funding":"https://opencollective.com/napi-postinstall","license":"MIT","engines":{"node":"^12.20.0 || ^14.18.0 || >=16.0.0"},"bin":{"napi-postinstall":"lib/cli.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"dependencies":{"tslib":"^2.8.1"},"_id":"napi-postinstall@0.1.2","gitHead":"63eaac228beff3286bb80667cce90428d08e04de","bugs":{"url":"https://github.com/un-ts/napi-postinstall/issues"},"homepage":"https://github.com/un-ts/napi-postinstall#readme","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"shasum":"11512b14a23603e6b00addedb92291f98b928d32","size":11808,"noattachment":false,"key":"/napi-postinstall/-/napi-postinstall-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/napi-postinstall/download/napi-postinstall-0.1.2.tgz"},"_npmUser":{"name":"jounqin","email":"admin@1stg.me"},"directories":{},"maintainers":[{"name":"jounqin","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/napi-postinstall_0.1.2_1745146368389_0.5508675656856827"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-20T10:52:48.602Z","publish_time":1745146368602,"_source_registry_name":"default","_cnpm_publish_time":1745146368602},"0.1.1":{"name":"napi-postinstall","version":"0.1.1","type":"commonjs","description":"The `postinstall` script helper for handling native bindings in legacy `npm` versions","repository":{"type":"git","url":"git+https://github.com/un-ts/napi-postinstall.git"},"author":{"name":"JounQin","email":"admin@1stg.me","url":"https://www.1stG.me"},"funding":"https://opencollective.com/unts","license":"MIT","engines":{"node":"^12.20.0 || ^14.18.0 || >=16.0.0"},"bin":{"napi-postinstall":"lib/cli.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"_id":"napi-postinstall@0.1.1","gitHead":"2b62532b58918199579fe5ba3be546ca4eecc161","bugs":{"url":"https://github.com/un-ts/napi-postinstall/issues"},"homepage":"https://github.com/un-ts/napi-postinstall#readme","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"shasum":"bce16aae52c3b43b5a33584938da75c2f2a53c26","size":11795,"noattachment":false,"key":"/napi-postinstall/-/napi-postinstall-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/napi-postinstall/download/napi-postinstall-0.1.1.tgz"},"_npmUser":{"name":"jounqin","email":"admin@1stg.me"},"directories":{},"maintainers":[{"name":"jounqin","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/napi-postinstall_0.1.1_1745097322736_0.4400836157158958"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-19T21:15:22.952Z","publish_time":1745097322952,"_source_registry_name":"default","_cnpm_publish_time":1745097322952},"0.1.0":{"name":"napi-postinstall","version":"0.1.0","type":"commonjs","description":"The `postinstall` script helper for handling native bindings in legacy `npm` versions","repository":{"type":"git","url":"git+https://github.com/un-ts/napi-postinstall.git"},"author":{"name":"JounQin","email":"admin@1stg.me","url":"https://www.1stG.me"},"funding":"https://opencollective.com/unts","license":"MIT","engines":{"node":"^12.20.0 || ^14.18.0 || >=16.0.0"},"bin":{"napi-postinstall":"lib/cli.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"_id":"napi-postinstall@0.1.0","gitHead":"4ef05986ced9105291e297bd528e0192b409a311","bugs":{"url":"https://github.com/un-ts/napi-postinstall/issues"},"homepage":"https://github.com/un-ts/napi-postinstall#readme","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"shasum":"ecf11ed5305ea7c9a38250f4c0452a1bad1757f5","size":11746,"noattachment":false,"key":"/napi-postinstall/-/napi-postinstall-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/napi-postinstall/download/napi-postinstall-0.1.0.tgz"},"_npmUser":{"name":"jounqin","email":"admin@1stg.me"},"directories":{},"maintainers":[{"name":"jounqin","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/napi-postinstall_0.1.0_1745091034543_0.598635949726722"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-19T19:30:34.770Z","publish_time":1745091034770,"_source_registry_name":"default","_cnpm_publish_time":1745091034770}},"readme":"# napi-postinstall\n\n[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/un-ts/napi-postinstall/ci.yml?branch=main)](https://github.com/un-ts/napi-postinstall/actions/workflows/ci.yml?query=branch%3Amain)\n[![Codecov](https://img.shields.io/codecov/c/github/un-ts/napi-postinstall.svg)](https://codecov.io/gh/un-ts/napi-postinstall)\n[![type-coverage](https://img.shields.io/badge/dynamic/json.svg?label=type-coverage&prefix=%E2%89%A5&suffix=%&query=$.typeCoverage.atLeast&uri=https%3A%2F%2Fraw.githubusercontent.com%2Fun-ts%2Fnapi-postinstall%2Fmain%2Fpackage.json)](https://github.com/plantain-00/type-coverage)\n[![CodeRabbit Pull Request Reviews](https://img.shields.io/coderabbit/prs/github/un-ts/napi-postinstall)](https://coderabbit.ai)\n[![npm](https://img.shields.io/npm/v/napi-postinstall.svg)](https://www.npmjs.com/package/napi-postinstall)\n[![GitHub Release](https://img.shields.io/github/release/un-ts/napi-postinstall)](https://github.com/un-ts/napi-postinstall/releases)\n\n[![Conventional Commits](https://img.shields.io/badge/conventional%20commits-1.0.0-yellow.svg)](https://conventionalcommits.org)\n[![Renovate enabled](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com)\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n[![Code Style: Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n[![changesets](https://img.shields.io/badge/maintained%20with-changesets-176de3.svg)](https://github.com/changesets/changesets)\n\nThe `postinstall` script helper for handling native bindings in legacy `npm` versions, this is a reimplementation of the [`node-install`][node-install] functionality from [`esbuild`][esbuild] for [`napi-rs`][napi-rs] ecosystem packages like [`rollup`][rollup], [`@swc/core`][swc-core] and [`unrs-resolver`][unrs-resolver].\n\nFor more details, please refer to the following issues:\n\n- [npm/cli#4828](https://github.com/npm/cli/issues/4828) -- root cause\n- [napi-rs/napi-rs#2569](https://github.com/napi-rs/napi-rs/issues/2569)\n- [unrs/unrs-resolver#56](https://github.com/unrs/unrs-resolver/issues/56)\n\n## TOC <!-- omit in toc -->\n\n- [Usage](#usage)\n  - [Install](#install)\n  - [CLI](#cli)\n  - [API](#api)\n    - [Types](#types)\n    - [Example](#example)\n- [Sponsors and Backers](#sponsors-and-backers)\n  - [Sponsors](#sponsors)\n  - [Backers](#backers)\n- [Changelog](#changelog)\n- [License](#license)\n\n## Usage\n\n### Install\n\n```sh\n# pnpm\npnpm add napi-postinstall\n\n# yarn\nyarn add napi-postinstall\n\n# npm\nnpm i napi-postinstall\n\n# bun\nbun add napi-postinstall\n```\n\n### CLI\n\n```sh\nnapi-postinstall unrs-resolver #<napi-package-name>\n```\n\nYou can put it into `scripts#postinstall` of your `package.json`:\n\n```json\n{\n  \"scripts\": {\n    \"postinstall\": \"napi-postinstall unrs-resolver\"\n  }\n}\n```\n\nThis will check and prepare the napi binding packages for you automatically.\n\n### API\n\n#### Types\n\n```ts\n// napi-postinstall\nexport interface PackageJson {\n  name: string\n  version: string\n}\n\nexport declare function checkAndPreparePackage(\n  packageNameOrPackageJson: PackageJson | string,\n  checkVersion?: boolean,\n): Promise<void>\n\n// napi-postinstall/fallback\ndeclare function fallback<T = unknown>(\n  packageJsonPath: string,\n  checkVersion?: boolean,\n): T\nexport = fallback\n```\n\n#### Example\n\n```js\n// index.js\nconst { checkAndPreparePackage, isNpm } = require('napi-postinstall')\n\nif (isNpm()) {\n  void checkAndPreparePackage('unrs-resolver' /* <napi-package-name> */)\n}\n\n// fallback.js\nmodule.exports = require('napi-postinstall/fallback')(\n  require.resolve('./package.json') /* <napi-package-json-path> */,\n  true /* <check-version> */,\n)\n```\n\n## Sponsors and Backers\n\n[![Sponsors](https://raw.githubusercontent.com/1stG/static/master/sponsors.svg)](https://github.com/sponsors/JounQin)\n\n### Sponsors\n\n| 1stG                                                                                                                   | RxTS                                                                                                                   | UnTS                                                                                                                   |\n| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |\n| [![1stG Open Collective sponsors](https://opencollective.com/1stG/organizations.svg)](https://opencollective.com/1stG) | [![RxTS Open Collective sponsors](https://opencollective.com/rxts/organizations.svg)](https://opencollective.com/rxts) | [![UnTS Open Collective sponsors](https://opencollective.com/unts/organizations.svg)](https://opencollective.com/unts) |\n\n### Backers\n\n| 1stG                                                                                                                | RxTS                                                                                                                | UnTS                                                                                                                |\n| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |\n| [![1stG Open Collective backers](https://opencollective.com/1stG/individuals.svg)](https://opencollective.com/1stG) | [![RxTS Open Collective backers](https://opencollective.com/rxts/individuals.svg)](https://opencollective.com/rxts) | [![UnTS Open Collective backers](https://opencollective.com/unts/individuals.svg)](https://opencollective.com/unts) |\n\n## Changelog\n\nDetailed changes for each release are documented in [CHANGELOG.md](./CHANGELOG.md).\n\n## License\n\n[MIT][] © [JounQin][]@[1stG.me][]\n\n[node-install]: https://github.com/evanw/esbuild/blob/4475787eef4c4923b92b9fa37ebba1c88b9e1d9b/lib/npm/node-install.ts\n[esbuild]: https://github.com/evanw/esbuild\n[napi-rs]: https://github.com/napi-rs/napi-rs\n[rollup]: https://github.com/rollup/rollup\n[swc-core]: https://github.com/swc-project/swc\n[unrs-resolver]: https://github.com/unrs/unrs-resolver\n[1stG.me]: https://www.1stG.me\n[JounQin]: https://github.com/JounQin\n[MIT]: http://opensource.org/licenses/MIT\n","_attachments":{},"homepage":"https://github.com/un-ts/napi-postinstall#readme","bugs":{"url":"https://github.com/un-ts/napi-postinstall/issues"},"license":"MIT"}