{"_id":"refcounter","_rev":"1-4efaf1555738abdc9d156ded429737d5","name":"refcounter","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.0":{"name":"refcounter","version":"0.0.0","author":{"name":"Holepunch Inc"},"license":"Apache-2.0","_id":"refcounter@0.0.0","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"homepage":"https://github.com/holepunchto/refcounter","bugs":{"url":"https://github.com/holepunchto/refcounter/issues"},"dist":{"shasum":"06f8b9f17abcc4e3d1dd2b01d4e555de0695f685","tarball":"https://registry.npmjs.org/refcounter/-/refcounter-0.0.0.tgz","fileCount":5,"integrity":"sha512-pTxzdxPx0Rs2VZfD6sW06q+bWr8KMqSe89qddYiiZDYy2qHPMw6EIUK4+9WKTk1qdW5Ljdgcx6ASyk4UpLbxnQ==","signatures":[{"sig":"MEUCIQCmNQ0XGbOyFD/rdnrEx/bksiyquy4r8Un5GuW2pQxjsAIgNF7jFUXp3Axnm88LLLqfT4UPItbG+pmwVOxfaQhuiHk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13250},"main":"index.js","gitHead":"bfddb8042e459f50ab34790a4893244da1227361","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"repository":{"url":"git+https://github.com/holepunchto/refcounter.git","type":"git"},"_npmVersion":"10.9.1","description":"Simple refcounter","directories":{},"_nodeVersion":"20.11.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/refcounter_0.0.0_1734550491373_0.9666471920581099","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"refcounter","version":"1.0.0","description":"Simple refcounter","main":"index.js","dependencies":{},"devDependencies":{},"repository":{"type":"git","url":"git+https://github.com/holepunchto/refcounter.git"},"author":{"name":"Holepunch Inc"},"license":"Apache-2.0","bugs":{"url":"https://github.com/holepunchto/refcounter/issues"},"homepage":"https://github.com/holepunchto/refcounter","_id":"refcounter@1.0.0","gitHead":"4047f858dd64a0df654222daa2aedd0f138dee1b","_nodeVersion":"20.11.1","_npmVersion":"10.9.1","dist":{"integrity":"sha512-1WosVzUy0kPUaPMEtlNDwm99UsteALIhXXR8rerELoa63WkYIXAl0hxgwPFrIYBRWZPGUyekQ04FRtPJ7dHk9w==","shasum":"bd1845507b8a2d092c85134f070bffff56396291","tarball":"https://registry.npmjs.org/refcounter/-/refcounter-1.0.0.tgz","fileCount":5,"unpackedSize":13250,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID/T5G7dxAQFqhmrOWw2XbJtZnCBNWXPw5iDW4sDFzz5AiEAtNJxTcZ2X3ob9krjGTi1Y/N3GQi/i+fbz8w+iNV4r1k="}]},"_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/refcounter_1.0.0_1734550540099_0.003489709056224477"},"_hasShrinkwrap":false}},"time":{"created":"2024-12-18T19:34:51.372Z","modified":"2024-12-18T19:35:40.459Z","0.0.0":"2024-12-18T19:34:51.564Z","1.0.0":"2024-12-18T19:35:40.289Z"},"bugs":{"url":"https://github.com/holepunchto/refcounter/issues"},"author":{"name":"Holepunch Inc"},"license":"Apache-2.0","homepage":"https://github.com/holepunchto/refcounter","repository":{"type":"git","url":"git+https://github.com/holepunchto/refcounter.git"},"description":"Simple refcounter","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"readme":"# refcounter\n\nSimple refcounter\n\n```\nnpm install refcounter\n```\n\n## Usage\n\n``` js\nconst RefCounter = require('refcounter')\n\nconst refs = new RefCounter()\n\nrefs.inc()\nrefs.dec()\n\nrefs.isIdle() // true is no refs\nawait refs.idle() // wait for no refs\n```\n\n## License\n\nApache-2.0\n","readmeFilename":"README.md"}