{"_id":"resource-on-exit","name":"resource-on-exit","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"resource-on-exit","version":"1.0.0","description":"Register sync teardown handlers for a resource","main":"index.js","dependencies":{},"devDependencies":{},"repository":{"type":"git","url":"git+https://github.com/holepunchto/bare-teardown.git"},"author":{"name":"Holepunch Inc."},"license":"Apache-2.0","bugs":{"url":"https://github.com/holepunchto/bare-teardown/issues"},"homepage":"https://github.com/holepunchto/bare-teardown","_id":"resource-on-exit@1.0.0","gitHead":"282f21b08ee61a5037eac2140f1ed5ebb0039dbc","_nodeVersion":"22.16.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-ViJwJAknCkLRJRPR+9SISQQ7R5eRgtdIHLJsM2hHx1MweAJbJxJ5XnMjjq0Lc7ZGv44ufzAqds1nKxiVkdy4ag==","shasum":"9f2d381ec839daac743f9e5b4786910c202b89e2","tarball":"https://registry.npmjs.org/resource-on-exit/-/resource-on-exit-1.0.0.tgz","fileCount":5,"unpackedSize":13058,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDKn3psyc01pW6B0vLN0Y8ETx+Ua7D7wlNolwBMBUY+aAiAkxIsYJG23+fVDJYlDQ6o7bv0Qo0XIisyREge6yYXSiw=="}]},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/resource-on-exit_1.0.0_1762625355796_0.9856909930900637"},"_hasShrinkwrap":false}},"time":{"created":"2025-11-08T18:09:15.795Z","1.0.0":"2025-11-08T18:09:15.974Z","modified":"2025-11-08T18:09:16.276Z"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"description":"Register sync teardown handlers for a resource","homepage":"https://github.com/holepunchto/bare-teardown","repository":{"type":"git","url":"git+https://github.com/holepunchto/bare-teardown.git"},"author":{"name":"Holepunch Inc."},"bugs":{"url":"https://github.com/holepunchto/bare-teardown/issues"},"license":"Apache-2.0","readme":"# resource-on-exit\n\nRegister sync teardown handlers for a resource\n\n```\nnpm install resource-on-exit\n```\n\n## Usage\n\n``` js\nconst { add, remove } = require('resource-on-exit')\n\nconst file = { fd }\n\nadd(file, () => fs.closeSync(file.fd))\nremove(file) // to remove\n```\n\n## License\n\nApache-2.0\n","readmeFilename":"README.md","_rev":"1-92c61842cc5ac2f44cd799af53310e57"}