{"_id":"ready-resource","_rev":"10-1ef7cb2586d9f23f7923df7840121feb","name":"ready-resource","dist-tags":{"latest":"1.2.0"},"versions":{"0.0.0":{"name":"ready-resource","version":"0.0.0","author":{"url":"@mafintosh","name":"Mathias Buus"},"license":"MIT","_id":"ready-resource@0.0.0","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"homepage":"https://github.com/mafintosh/ready-resource","bugs":{"url":"https://github.com/mafintosh/ready-resource/issues"},"dist":{"shasum":"49112086b155b579bda5b02fe793ee264f4c7811","tarball":"https://registry.npmjs.org/ready-resource/-/ready-resource-0.0.0.tgz","fileCount":5,"integrity":"sha512-S21IGLzwEwsAmitFx9PbeF/8Z38GL9w0DMCv2fAVps2O1POSgHi3M2geRGRUDqoavRYuu7mXl56BdxanBP5Fgw==","signatures":[{"sig":"MEUCIQDAiC1vaXIDuCAa5ndBQLN85KE0tIlSz4b5xshRPy5N2gIgOJlOOg9CrH4GsxM50fjI4jc6FlIUm1BQmNRPLDFtXNQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3054,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjHwaVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq0BQ/9F3IiM3JAy166NDi1ORyz8OBP+1guvlRtckfQUjS9PhwcX3JJ\r\nm+XdCsCTOkdsgukc0Dao4JrghHdJT0XVh3HCi6NBP0D8XyW6x9popqd0WZa3\r\na/picB2lsRtPcwwVO7qyEJbBeLAgFIG2YvIE1PbPAo8AhzMbc7pMsWQDJuPp\r\n8M2N6LJGc8c5xXmTkcOBlKpZbTLdzhP78Kbz3vGMH5Lwq9qWU7s+aJYWoUlu\r\noKIKVhQCdqZ5rYma47mUwMlOh5OQ4J5OkATwTMjw3j4CgoBMgXgx26CBDXgu\r\nKYge4Bmjv5pyBp7EMIVddHllyRI84ySKjbflfSqzNzhEynjC1EakuQ1y7uhT\r\n4qk24kWwr4F2zb5in56B8zq5kTrWBXLf3QREiN4WiNFgzuACzG2wzhTQjVIh\r\ndE+aP3zH/zk31BbSP8AnQkumQLxOI7bvKWkTiu8yTVIZr+l/KdRdkS28A/Lu\r\n414Tz04oITI7G4KiySel90J9axsqgvy95fkCWFr5XXuw4iZLw6lQAGh1wxme\r\nxCvTF6AsG7pR45QRykWyzGNOKW6KknS45Iml96Mu8jBP8F22Do3xwF4eMCma\r\nSEEXfdEmqc6Jx1yxfhRkPbaHWwbpah7FovBCd8cOFBOVDUtZ5nHxTUR8dqAx\r\nphKSQdcgazpsBXDkNFO5BwQMH8wFwKD7Ycw=\r\n=eScB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"repository":{"url":"git+https://github.com/mafintosh/ready-resource.git","type":"git"},"_npmVersion":"8.11.0","description":"Modern simple single resource management","directories":{},"_nodeVersion":"16.16.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/ready-resource_0.0.0_1662977685550_0.4617493485308859","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"ready-resource","version":"1.0.0","author":{"url":"@mafintosh","name":"Mathias Buus"},"license":"MIT","_id":"ready-resource@1.0.0","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"homepage":"https://github.com/mafintosh/ready-resource","bugs":{"url":"https://github.com/mafintosh/ready-resource/issues"},"dist":{"shasum":"8c07ee72da72d530bd2fd6b834b3ff0b03bbaaba","tarball":"https://registry.npmjs.org/ready-resource/-/ready-resource-1.0.0.tgz","fileCount":6,"integrity":"sha512-9/Oj3DXv+QxWinvVcxVVRXn9Jj4b9wssv0PvQh5bO+N/vzqo6kmScUNl+faWWMEu0rYMPa6Tvp50+rP5ujZvqg==","signatures":[{"sig":"MEQCICgGuAN4k/AwGBszks31N7vQa7eTAKn8+6gnPxUXdxrTAiB8n+8qTmCLZ552batlulPq5rUJfuPjJMJqS8Ry+2rWXQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3896,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjHxY+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqEnxAAn3qolQpO8l6imWCzhzG+m6/mVBS/0CYYP6UfQRkzraY6vSNn\r\neF2BS+lU6IuY8g/zDoCYqHXLl/0rGbs3GuDbCfI+bwFa81lrd7LLlDDNqZie\r\nqZlAvg4UDkfY/luWHOAXjIDhbt8thzJA++kYS27gthVA3NSeUuzqW5CBKad2\r\nIKfr9Wc9D3zyio/zOg+IimDDQlpUgVVhU/NUBP1iDNfPuBsWOeAO+HLUOkHL\r\nqWSjToWGdP5j+FsO3xs2ICP8OSSU6fIs6jsgxjxIIheGvitdrO7/GjfSy+m/\r\nuaHrRgz54Xu5ciTjnnVbyPFq9GLqVwKePkfWdOuJAgth/XqfzIMHhI6kFFbR\r\ndbTZiPH40Ge07ng9CS4TzSEyTyzEKBY7wKaabCh6AS6tZre9dxFwkVAcCJDG\r\nic2I8Ym4bsSMUCm96lzEs5qVfhlnnaWv8XJMuRDfgeEyzI6PP3rT36RdEcNo\r\nC7v2MR1NRE0uXYQhOEF/f4NeOXAAg7dvxA59m7zKBJIeGp69thAlBMvPD42F\r\ninOaQlIQQ4dpDn/vsEl0aDwRByrIdoB0k76YEaCcWTiSYGtxaWisrQ/djNlv\r\nnYulH0wymahwJcNWw1/ilJ9JlmwS10hgtsgzcR89h/ZTSio/O5HLYETTrcRS\r\nCfEKhg0CiqH8HOfqnTKBPrR/IC4c0mbevAM=\r\n=NSLj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"fca6a0ca197f508bfcb5329d00f82709f8aaef0b","scripts":{"test":"standard && brittle test.js"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"repository":{"url":"git+https://github.com/mafintosh/ready-resource.git","type":"git"},"_npmVersion":"8.11.0","description":"Modern single resource management","directories":{},"_nodeVersion":"16.16.0","_hasShrinkwrap":false,"devDependencies":{"brittle":"^3.1.0","standard":"^17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ready-resource_1.0.0_1662981694664_0.7044150516599808","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"ready-resource","version":"1.0.1","author":{"url":"@mafintosh","name":"Mathias Buus"},"license":"MIT","_id":"ready-resource@1.0.1","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"homepage":"https://github.com/mafintosh/ready-resource","bugs":{"url":"https://github.com/mafintosh/ready-resource/issues"},"dist":{"shasum":"434a2f01aac799e9a3801f4b9a824defaef1d50c","tarball":"https://registry.npmjs.org/ready-resource/-/ready-resource-1.0.1.tgz","fileCount":6,"integrity":"sha512-iDDdAsoQGHSHH8CnBhq4iIwixwkjZnrWMfwT9oV/Fl1PKCQ5MGg+3e5S/IXLVHLuYhz9T0TRg/PNA5mlxvzaHA==","signatures":[{"sig":"MEUCIQCUROScwp9PkTL4iPV/1sJNODrEKqtBnp/EcI09rt/s0QIgQD+xmNudZc9nDELrjdxgUa7xHQCDeoqk7BwosEMSnqU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3993},"main":"index.js","gitHead":"0e3e14640e94fa963a77cf8781433e237490351b","imports":{"events":{"bare":"bare-events","default":"events"}},"scripts":{"test":"standard && brittle test.js"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"repository":{"url":"git+https://github.com/mafintosh/ready-resource.git","type":"git"},"_npmVersion":"10.2.3","description":"Modern single resource management","directories":{},"_nodeVersion":"20.10.0","_hasShrinkwrap":false,"devDependencies":{"brittle":"^3.1.0","standard":"^17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ready-resource_1.0.1_1707335928829_0.6299400346827999","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"ready-resource","version":"1.0.2","author":{"url":"@mafintosh","name":"Mathias Buus"},"license":"MIT","_id":"ready-resource@1.0.2","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"homepage":"https://github.com/mafintosh/ready-resource","bugs":{"url":"https://github.com/mafintosh/ready-resource/issues"},"dist":{"shasum":"59535ae642c035f9e13433892612957926e10800","tarball":"https://registry.npmjs.org/ready-resource/-/ready-resource-1.0.2.tgz","fileCount":4,"integrity":"sha512-RyMZAcDEpGh1SmWqHlDYWJMwpuSK7pCwN9/xzvAh4eFMq4ce72jmsK7ijrnbOSH7JTePoGdulPSFyi3wBtUj6g==","signatures":[{"sig":"MEQCIA7llXCPWxQGMKMeA/cYxGd4U2b7EuAg8in/IGFqkbGiAiBgqU1Td0Llq05tHiIGavsv+OaPeW6DppBb2h2cV0x1KA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3120},"main":"index.js","gitHead":"0e481708280395dcf580828d6a4eb9b1ad7f353f","imports":{"events":{"bare":"bare-events","default":"events"}},"scripts":{"test":"standard && brittle test.js"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"repository":{"url":"git+https://github.com/mafintosh/ready-resource.git","type":"git"},"_npmVersion":"10.2.3","description":"Modern single resource management","directories":{},"_nodeVersion":"20.10.0","_hasShrinkwrap":false,"devDependencies":{"brittle":"^3.1.0","standard":"^17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ready-resource_1.0.2_1707335976811_0.3237068793428446","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"ready-resource","version":"1.0.3","author":{"url":"@mafintosh","name":"Mathias Buus"},"license":"MIT","_id":"ready-resource@1.0.3","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"homepage":"https://github.com/mafintosh/ready-resource","bugs":{"url":"https://github.com/mafintosh/ready-resource/issues"},"dist":{"shasum":"cd2c572c9bc3dd880ed5e7a739757ba95600d6f6","tarball":"https://registry.npmjs.org/ready-resource/-/ready-resource-1.0.3.tgz","fileCount":4,"integrity":"sha512-v6HyO+5jRwz/BmYZqMxgfEM7ADc3ySF/iZR0s7KrI86kw4iluStZupicNNaVyL6vOgVHHj9oLtvV8qiqL7aeRg==","signatures":[{"sig":"MEQCIAOrQw3OqPD8lkU5i8nC1wpJ/jF+us6Ns4eh1ZW+m12uAiA+A9G1OmoNMxgPojCHnoagru35Mg+RqK2kM02DCDmFQQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3173},"main":"index.js","gitHead":"cf8ed7055bb3235824f59626b3b9240ebc93a9fb","imports":{"events":{"bare":"bare-events","default":"events"}},"scripts":{"test":"standard && brittle test.js"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"repository":{"url":"git+https://github.com/mafintosh/ready-resource.git","type":"git"},"_npmVersion":"10.2.3","description":"Modern single resource management","directories":{},"_nodeVersion":"20.10.0","dependencies":{"bare-events":"^2.2.0"},"_hasShrinkwrap":false,"devDependencies":{"brittle":"^3.1.0","standard":"^17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ready-resource_1.0.3_1707336914912_0.8915382547272461","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"ready-resource","version":"1.1.0","author":{"url":"@mafintosh","name":"Mathias Buus"},"license":"MIT","_id":"ready-resource@1.1.0","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"homepage":"https://github.com/mafintosh/ready-resource","bugs":{"url":"https://github.com/mafintosh/ready-resource/issues"},"dist":{"shasum":"79d881ade1b8c40c7d6a21868a68c076bf2d4322","tarball":"https://registry.npmjs.org/ready-resource/-/ready-resource-1.1.0.tgz","fileCount":4,"integrity":"sha512-O1dp0untEme8WUKwWLkWaPzJiUkKxOQZzFh3LCPYl7M36mCxxBMj31+lCnVemXOBZDF9fkOuU84wKOvftaAlbQ==","signatures":[{"sig":"MEYCIQDorRfURZmHkSmhHl5PNH40ba2FR1HcQlwGCRu5Xv2PyAIhAOsyXrwXROgyeEoZ19FldlvLTsEgNc+BOpa3fysiSyy1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3342},"main":"index.js","gitHead":"deb3f2bac4364fa5945da1f3de0e26106a496ee4","imports":{"events":{"bare":"bare-events","default":"events"}},"scripts":{"test":"standard && brittle test.js"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"repository":{"url":"git+https://github.com/mafintosh/ready-resource.git","type":"git"},"_npmVersion":"10.7.0","description":"Modern single resource management","directories":{},"_nodeVersion":"20.11.1","dependencies":{"bare-events":"^2.2.0"},"_hasShrinkwrap":false,"devDependencies":{"brittle":"^3.1.0","standard":"^17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ready-resource_1.1.0_1718372110752_0.2514643785149473","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"ready-resource","version":"1.1.1","author":{"url":"@mafintosh","name":"Mathias Buus"},"license":"MIT","_id":"ready-resource@1.1.1","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"homepage":"https://github.com/mafintosh/ready-resource","bugs":{"url":"https://github.com/mafintosh/ready-resource/issues"},"dist":{"shasum":"bde7318c362d51f29a6db0e63055ba273aa3b40d","tarball":"https://registry.npmjs.org/ready-resource/-/ready-resource-1.1.1.tgz","fileCount":4,"integrity":"sha512-EQbJs+wXphM1opGCpYSp3toAID8okqGDLmhjGLCiptMfMHGcTxdP3lsmSsYwU+lbrUXrbuhhgcDPge656X48VQ==","signatures":[{"sig":"MEQCIGavihjHprlrfcwIV/4OBdP86iKmByo2NEDAyauh5DWDAiA5qkm85yM+DTj4Eb03FLvApVbMK8aPBelNOjPvTsXVAw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3385},"main":"index.js","gitHead":"140a89618ff50e8b8b41ebb9c9142880ce955706","imports":{"events":{"bare":"bare-events","default":"events"}},"scripts":{"test":"standard && brittle test.js"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"repository":{"url":"git+https://github.com/mafintosh/ready-resource.git","type":"git"},"_npmVersion":"10.7.0","description":"Modern single resource management","directories":{},"_nodeVersion":"20.11.1","dependencies":{"bare-events":"^2.2.0"},"_hasShrinkwrap":false,"devDependencies":{"brittle":"^3.1.0","standard":"^17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ready-resource_1.1.1_1718385804169_0.635292888449535","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"ready-resource","version":"1.1.2","author":{"url":"@mafintosh","name":"Mathias Buus"},"license":"MIT","_id":"ready-resource@1.1.2","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"homepage":"https://github.com/holepunchto/ready-resource","bugs":{"url":"https://github.com/holepunchto/ready-resource/issues"},"dist":{"shasum":"6b8eeba9fd37f1d0a592b2d254f84c302413cd46","tarball":"https://registry.npmjs.org/ready-resource/-/ready-resource-1.1.2.tgz","fileCount":4,"integrity":"sha512-BN2Yfg/avHpozP+XSo+gsjHQ0AejnfbCJeJT4eamAHSf7dgYmNNWsZqTt5IEc06mjlLao+c2jlTbZvpZyRtRNQ==","signatures":[{"sig":"MEUCIHgv5+GyRltoPSro67Q7BtWt0d5e6cL/GHmkeQIDFccyAiEA3aqTeYxUD7bkH49LUJ3ysW90uaCJYUwpPyYob5bhKJs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3454},"main":"index.js","gitHead":"21b296659cd9c1ac26747244626393dbb35aac17","imports":{"events":{"bare":"bare-events","default":"events"}},"scripts":{"test":"standard && brittle test.js"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"repository":{"url":"git+https://github.com/holepunchto/ready-resource.git","type":"git"},"_npmVersion":"10.9.0","description":"Modern single resource management","directories":{},"_nodeVersion":"22.12.0","dependencies":{"bare-events":"^2.2.0"},"_hasShrinkwrap":false,"devDependencies":{"brittle":"^3.1.0","standard":"^17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ready-resource_1.1.2_1739485925979_0.030257359105835935","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"ready-resource","version":"1.2.0","description":"Modern single resource management","main":"index.js","imports":{"events":{"bare":"bare-events","default":"events"}},"types":"index.d.ts","scripts":{"test":"standard && brittle test.js"},"devDependencies":{"brittle":"^3.1.0","standard":"^17.0.0"},"repository":{"type":"git","url":"git+https://github.com/holepunchto/ready-resource.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/holepunchto/ready-resource/issues"},"homepage":"https://github.com/holepunchto/ready-resource","dependencies":{"bare-events":"^2.2.0"},"_id":"ready-resource@1.2.0","gitHead":"4136c76bfcac1b1cadcbfa47b22be08a200c20fd","_nodeVersion":"22.16.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-nfcco/8iAFV0M+2PYnmIc+/xY0iRb35d42HFHQ7AfjulbGEAFa+XWpByfwSyeVeiBoMLLFVMv1HixxNCqzSQ1g==","shasum":"4d5b78f96b707bcba3fce972ec89bdf7c1e3993c","tarball":"https://registry.npmjs.org/ready-resource/-/ready-resource-1.2.0.tgz","fileCount":5,"unpackedSize":5354,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFDx23QGOYRXNFwCYPZ5iZ+mxcZImfBcrYosZvFiL0iPAiEAlR5GQEYFIwGR5hV+CFaTxqkxwyWWmzbY44QDLuweOps="}]},"_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/ready-resource_1.2.0_1755700058090_0.027127692252524538"},"_hasShrinkwrap":false}},"time":{"created":"2022-09-12T10:14:45.549Z","modified":"2025-08-20T14:27:38.510Z","0.0.0":"2022-09-12T10:14:45.717Z","1.0.0":"2022-09-12T11:21:34.889Z","1.0.1":"2024-02-07T19:58:49.013Z","1.0.2":"2024-02-07T19:59:36.945Z","1.0.3":"2024-02-07T20:15:15.095Z","1.1.0":"2024-06-14T13:35:10.881Z","1.1.1":"2024-06-14T17:23:24.292Z","1.1.2":"2025-02-13T22:32:06.152Z","1.2.0":"2025-08-20T14:27:38.356Z"},"bugs":{"url":"https://github.com/holepunchto/ready-resource/issues"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","homepage":"https://github.com/holepunchto/ready-resource","repository":{"type":"git","url":"git+https://github.com/holepunchto/ready-resource.git"},"description":"Modern single resource management","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"readme":"# ready-resource\n\nModern single resource management\n\n```\nnpm install ready-resource\n```\n\n## Usage\n\n``` js\nconst ReadyResource = require('ready-resource')\n\nclass Thing extends ReadyResource {\n  constructor () {\n    super()\n  }\n\n  async _open () {\n    // open the resource\n  }\n\n  async _close () {\n    // close the resource\n  }\n}\n\nconst r = new Thing()\n\nawait r.ready() // calls _open once\nawait r.ready() // noop\n\nawait r.close() // calls _close after _open has finished\nawait r.close() // noop\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}