{"_id":"random-access-storage","_rev":"237699","name":"random-access-storage","description":"Easily make random-access-storage instances","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"mafintosh","email":""}],"time":{"modified":"2023-03-24T16:40:48.000Z","created":"2018-02-04T17:28:13.857Z","3.0.0":"2022-09-14T09:38:00.683Z","2.3.0":"2022-09-12T13:47:22.829Z","2.2.1":"2022-08-19T07:45:00.657Z","2.2.0":"2022-08-17T11:38:45.589Z","2.1.0":"2022-07-07T11:09:48.862Z","2.0.1":"2022-06-27T12:21:44.218Z","2.0.0":"2022-06-27T08:35:55.417Z","1.4.3":"2022-02-10T11:41:19.477Z","1.4.2":"2021-11-04T09:06:22.108Z","1.4.1":"2020-02-28T14:03:07.075Z","1.4.0":"2019-06-12T11:47:38.460Z","1.3.0":"2018-06-21T07:21:09.177Z","1.2.0":"2018-05-02T09:33:47.321Z","1.1.1":"2018-02-05T14:18:31.415Z","1.1.0":"2018-02-05T08:22:26.056Z","1.0.0":"2018-02-04T21:02:35.731Z","0.0.0":"2018-02-04T17:28:13.857Z"},"users":{},"author":{"name":"Mathias Buus","url":"@mafintosh"},"repository":{"type":"git","url":"git+https://github.com/random-access-storage/random-access-storage.git"},"versions":{"3.0.0":{"name":"random-access-storage","version":"3.0.0","description":"Easily make random-access-storage instances","main":"index.js","dependencies":{"events":"^3.3.0","queue-tick":"^1.0.0"},"devDependencies":{"brittle":"^3.0.0","standard":"^17.0.0"},"scripts":{"test":"standard && brittle test.js"},"repository":{"type":"git","url":"git+https://github.com/random-access-storage/random-access-storage.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/random-access-storage/random-access-storage/issues"},"homepage":"https://github.com/random-access-storage/random-access-storage","gitHead":"e273033b6a5fd80cbf2a6e95acecae2370b09efc","_id":"random-access-storage@3.0.0","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"shasum":"a4107a84313cf0e215b232d533ac286b77b99a8c","size":4643,"noattachment":false,"key":"/random-access-storage/-/random-access-storage-3.0.0.tgz","tarball":"http://name.csiicloud.com:7001/random-access-storage/download/random-access-storage-3.0.0.tgz"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"maintainers":[{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/random-access-storage_3.0.0_1663148280515_0.5201390054673463"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-09-14T10:33:38.655Z","publish_time":1663148280683,"_cnpm_publish_time":1663148280683},"2.3.0":{"name":"random-access-storage","version":"2.3.0","description":"Easily make random-access-storage instances","main":"index.js","dependencies":{"events":"^3.3.0","queue-tick":"^1.0.0"},"devDependencies":{"brittle":"^3.0.0","standard":"^17.0.0"},"scripts":{"test":"standard && brittle test.js"},"repository":{"type":"git","url":"git+https://github.com/random-access-storage/random-access-storage.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/random-access-storage/random-access-storage/issues"},"homepage":"https://github.com/random-access-storage/random-access-storage","gitHead":"7d8e7fbeb5ae4b1f5a219aacfede25dfcf5f667d","_id":"random-access-storage@2.3.0","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"shasum":"18bfd70407e2e8c42d941ecbe7016256b78912da","size":4665,"noattachment":false,"key":"/random-access-storage/-/random-access-storage-2.3.0.tgz","tarball":"http://name.csiicloud.com:7001/random-access-storage/download/random-access-storage-2.3.0.tgz"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"maintainers":[{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/random-access-storage_2.3.0_1662990442620_0.08700279728100968"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-09-12T13:48:07.344Z","publish_time":1662990442829,"_cnpm_publish_time":1662990442829},"2.2.1":{"name":"random-access-storage","version":"2.2.1","description":"Easily make random-access-storage instances","main":"index.js","dependencies":{"events":"^3.3.0","queue-tick":"^1.0.0"},"devDependencies":{"brittle":"^2.3.1","standard":"^17.0.0"},"scripts":{"test":"standard && brittle test.js"},"repository":{"type":"git","url":"git+https://github.com/random-access-storage/random-access-storage.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/random-access-storage/random-access-storage/issues"},"homepage":"https://github.com/random-access-storage/random-access-storage","gitHead":"39f3a7af3fd7bf95a8c0979ed2d889cca134a222","_id":"random-access-storage@2.2.1","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"shasum":"7d527fdff451866bee43a24bbbe518e5085187a0","size":4423,"noattachment":false,"key":"/random-access-storage/-/random-access-storage-2.2.1.tgz","tarball":"http://name.csiicloud.com:7001/random-access-storage/download/random-access-storage-2.2.1.tgz"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"maintainers":[{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/random-access-storage_2.2.1_1660895100456_0.9419232738122079"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-08-19T08:16:41.640Z","publish_time":1660895100657,"_cnpm_publish_time":1660895100657},"2.2.0":{"name":"random-access-storage","version":"2.2.0","description":"Easily make random-access-storage instances","main":"index.js","dependencies":{"events":"^3.3.0","queue-tick":"^1.0.0"},"devDependencies":{"brittle":"^2.3.1","standard":"^17.0.0"},"scripts":{"test":"standard && brittle test.js"},"repository":{"type":"git","url":"git+https://github.com/random-access-storage/random-access-storage.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/random-access-storage/random-access-storage/issues"},"homepage":"https://github.com/random-access-storage/random-access-storage","gitHead":"26b2446292ee5a4fa59ac486868c26402080e199","_id":"random-access-storage@2.2.0","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"shasum":"bbf364a75beb234edb34c40c34ad4dbf367a0911","size":6269,"noattachment":false,"key":"/random-access-storage/-/random-access-storage-2.2.0.tgz","tarball":"http://name.csiicloud.com:7001/random-access-storage/download/random-access-storage-2.2.0.tgz"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"maintainers":[{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/random-access-storage_2.2.0_1660736325433_0.6348526321772499"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-08-17T12:34:19.567Z","publish_time":1660736325589,"_cnpm_publish_time":1660736325589},"2.1.0":{"name":"random-access-storage","version":"2.1.0","description":"Easily make random-access-storage instances","main":"index.js","dependencies":{"events":"^3.3.0","queue-tick":"^1.0.0"},"devDependencies":{"brittle":"^2.3.1","standard":"^17.0.0"},"scripts":{"test":"standard && brittle test.js"},"repository":{"type":"git","url":"git+https://github.com/random-access-storage/random-access-storage.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/random-access-storage/random-access-storage/issues"},"homepage":"https://github.com/random-access-storage/random-access-storage","gitHead":"9eee7d9d8a1132c793a3188bd45c1cac7cabd510","_id":"random-access-storage@2.1.0","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"shasum":"28d108613844db91b56045c9a54b98f8544dc46b","size":6026,"noattachment":false,"key":"/random-access-storage/-/random-access-storage-2.1.0.tgz","tarball":"http://name.csiicloud.com:7001/random-access-storage/download/random-access-storage-2.1.0.tgz"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"maintainers":[{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/random-access-storage_2.1.0_1657192188735_0.4830522587228716"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-07T11:44:28.826Z","publish_time":1657192188862,"_cnpm_publish_time":1657192188862},"2.0.1":{"name":"random-access-storage","version":"2.0.1","description":"Easily make random-access-storage instances","main":"index.js","dependencies":{"events":"^3.3.0","queue-tick":"^1.0.0"},"devDependencies":{"brittle":"^2.3.1","standard":"^17.0.0"},"scripts":{"test":"standard && brittle test.js"},"repository":{"type":"git","url":"git+https://github.com/random-access-storage/random-access-storage.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/random-access-storage/random-access-storage/issues"},"homepage":"https://github.com/random-access-storage/random-access-storage","gitHead":"afe9be4472b4231b661385719c6719482f775a2c","_id":"random-access-storage@2.0.1","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"shasum":"021b2f388b1a4677a51bc632c29741ae5768984d","size":5980,"noattachment":false,"key":"/random-access-storage/-/random-access-storage-2.0.1.tgz","tarball":"http://name.csiicloud.com:7001/random-access-storage/download/random-access-storage-2.0.1.tgz"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"maintainers":[{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/random-access-storage_2.0.1_1656332504032_0.725598467324696"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-06-27T13:01:05.936Z","publish_time":1656332504218,"_cnpm_publish_time":1656332504218},"2.0.0":{"name":"random-access-storage","version":"2.0.0","description":"Easily make random-access-storage instances","main":"index.js","dependencies":{"events":"^3.3.0","queue-tick":"^1.0.0"},"devDependencies":{"brittle":"^2.3.1","standard":"^17.0.0"},"scripts":{"test":"standard && brittle test.js"},"repository":{"type":"git","url":"git+https://github.com/random-access-storage/random-access-storage.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/random-access-storage/random-access-storage/issues"},"homepage":"https://github.com/random-access-storage/random-access-storage","gitHead":"c62ab680ad181ddfcda7f063c9a979cdfb49d193","_id":"random-access-storage@2.0.0","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"shasum":"e0b80142cfa57670c1f12fb6605f4b7a06216acc","size":5852,"noattachment":false,"key":"/random-access-storage/-/random-access-storage-2.0.0.tgz","tarball":"http://name.csiicloud.com:7001/random-access-storage/download/random-access-storage-2.0.0.tgz"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"maintainers":[{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/random-access-storage_2.0.0_1656318955256_0.09795835741998293"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-06-27T10:44:20.255Z","publish_time":1656318955417,"_cnpm_publish_time":1656318955417},"1.4.3":{"name":"random-access-storage","version":"1.4.3","description":"Easily make random-access-storage instances","main":"index.js","dependencies":{"events":"^3.3.0","inherits":"^2.0.3","queue-tick":"^1.0.0"},"devDependencies":{"standard":"^10.0.3","tape":"^4.8.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/random-access-storage/random-access-storage.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/random-access-storage/random-access-storage/issues"},"homepage":"https://github.com/random-access-storage/random-access-storage","gitHead":"50dd02fd07d5d1690a3346684f8aac74dd76d017","_id":"random-access-storage@1.4.3","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"shasum":"277d07005107562dfea84798eb9a6acd47d64b7f","size":6065,"noattachment":false,"key":"/random-access-storage/-/random-access-storage-1.4.3.tgz","tarball":"http://name.csiicloud.com:7001/random-access-storage/download/random-access-storage-1.4.3.tgz"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"maintainers":[{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/random-access-storage_1.4.3_1644493279353_0.37714717914918805"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-10T11:41:38.697Z","publish_time":1644493279477,"_cnpm_publish_time":1644493279477},"1.4.2":{"name":"random-access-storage","version":"1.4.2","description":"Easily make random-access-storage instances","main":"index.js","dependencies":{"inherits":"^2.0.3","queue-tick":"^1.0.0"},"devDependencies":{"standard":"^10.0.3","tape":"^4.8.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/random-access-storage/random-access-storage.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/random-access-storage/random-access-storage/issues"},"homepage":"https://github.com/random-access-storage/random-access-storage","gitHead":"618a8f53b3293c8180f02a4576febf4c982d0321","_id":"random-access-storage@1.4.2","_nodeVersion":"16.8.0","_npmVersion":"6.14.15","dist":{"shasum":"dd5c800fb5974c6c9811ebb41cdf896730aa3994","size":6094,"noattachment":false,"key":"/random-access-storage/-/random-access-storage-1.4.2.tgz","tarball":"http://name.csiicloud.com:7001/random-access-storage/download/random-access-storage-1.4.2.tgz"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"maintainers":[{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/random-access-storage_1.4.2_1636016781955_0.31854069667844853"},"_hasShrinkwrap":false,"publish_time":1636016782108,"_cnpm_publish_time":1636016782108,"_cnpmcore_publish_time":"2021-12-16T23:34:47.122Z"},"1.4.1":{"name":"random-access-storage","version":"1.4.1","description":"Easily make random-access-storage instances","main":"index.js","dependencies":{"inherits":"^2.0.3"},"devDependencies":{"standard":"^10.0.3","tape":"^4.8.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/random-access-storage/random-access-storage.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/random-access-storage/random-access-storage/issues"},"homepage":"https://github.com/random-access-storage/random-access-storage","gitHead":"b7864654c0fd427ba360519adbd8deb29ae52c7c","_id":"random-access-storage@1.4.1","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"shasum":"39a524dd428ade9161ce61a8ae677766e6117ffb","size":5963,"noattachment":false,"key":"/random-access-storage/-/random-access-storage-1.4.1.tgz","tarball":"http://name.csiicloud.com:7001/random-access-storage/download/random-access-storage-1.4.1.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/random-access-storage_1.4.1_1582898586969_0.9565696268067292"},"_hasShrinkwrap":false,"publish_time":1582898587075,"_cnpm_publish_time":1582898587075,"_cnpmcore_publish_time":"2021-12-16T23:34:47.605Z"},"1.4.0":{"name":"random-access-storage","version":"1.4.0","description":"Easily make random-access-storage instances","main":"index.js","dependencies":{"inherits":"^2.0.3"},"devDependencies":{"standard":"^10.0.3","tape":"^4.8.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/random-access-storage/random-access-storage.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/random-access-storage/random-access-storage/issues"},"homepage":"https://github.com/random-access-storage/random-access-storage","gitHead":"55650e6e6f6b06e0a45382fbc11086c15ef67879","_id":"random-access-storage@1.4.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"cbe5b5ccfb38680aac7b78a050d9f0a5ef36841f","size":5774,"noattachment":false,"key":"/random-access-storage/-/random-access-storage-1.4.0.tgz","tarball":"http://name.csiicloud.com:7001/random-access-storage/download/random-access-storage-1.4.0.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/random-access-storage_1.4.0_1560340058284_0.35045027794822414"},"_hasShrinkwrap":false,"publish_time":1560340058460,"_cnpm_publish_time":1560340058460,"_cnpmcore_publish_time":"2021-12-16T23:34:47.973Z"},"1.3.0":{"name":"random-access-storage","version":"1.3.0","description":"Easily make random-access-storage instances","main":"index.js","dependencies":{"inherits":"^2.0.3"},"devDependencies":{"standard":"^10.0.3","tape":"^4.8.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/random-access-storage/random-access-storage.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/random-access-storage/random-access-storage/issues"},"homepage":"https://github.com/random-access-storage/random-access-storage","gitHead":"20adf785a9742e380231c27ba516f311cef9a2cb","_id":"random-access-storage@1.3.0","_npmVersion":"6.1.0","_nodeVersion":"10.3.0","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"d27e4d897b79dc4358afc2bbe553044e5c8cfe35","size":5700,"noattachment":false,"key":"/random-access-storage/-/random-access-storage-1.3.0.tgz","tarball":"http://name.csiicloud.com:7001/random-access-storage/download/random-access-storage-1.3.0.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/random-access-storage_1.3.0_1529565669114_0.6711676475516484"},"_hasShrinkwrap":false,"publish_time":1529565669177,"_cnpm_publish_time":1529565669177,"_cnpmcore_publish_time":"2021-12-16T23:34:48.157Z"},"1.2.0":{"name":"random-access-storage","version":"1.2.0","description":"Easily make random-access-storage instances","main":"index.js","dependencies":{"inherits":"^2.0.3"},"devDependencies":{"standard":"^10.0.3","tape":"^4.8.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/random-access-storage/random-access-storage.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/random-access-storage/random-access-storage/issues"},"homepage":"https://github.com/random-access-storage/random-access-storage","gitHead":"cd10440e1cbc7e1b9e0102335905cf5a1e4d7467","_id":"random-access-storage@1.2.0","_npmVersion":"5.6.0","_nodeVersion":"9.11.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"5c93f662207daad8f4e3c916afa562af0a1ce776","size":5594,"noattachment":false,"key":"/random-access-storage/-/random-access-storage-1.2.0.tgz","tarball":"http://name.csiicloud.com:7001/random-access-storage/download/random-access-storage-1.2.0.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/random-access-storage_1.2.0_1525253627236_0.7403347703654399"},"_hasShrinkwrap":false,"publish_time":1525253627321,"_cnpm_publish_time":1525253627321,"_cnpmcore_publish_time":"2021-12-16T23:34:48.352Z"},"1.1.1":{"name":"random-access-storage","version":"1.1.1","description":"Easily make random-access-storage instances","main":"index.js","dependencies":{"inherits":"^2.0.3"},"devDependencies":{"standard":"^10.0.3","tape":"^4.8.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/random-access-storage/random-access-storage.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/random-access-storage/random-access-storage/issues"},"homepage":"https://github.com/random-access-storage/random-access-storage","gitHead":"73daef183036830735b7d8ec5f73d01e9e552074","_id":"random-access-storage@1.1.1","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"e3364013887367d54e2ad0a134c7bf68eb9229e5","size":5478,"noattachment":false,"key":"/random-access-storage/-/random-access-storage-1.1.1.tgz","tarball":"http://name.csiicloud.com:7001/random-access-storage/download/random-access-storage-1.1.1.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/random-access-storage-1.1.1.tgz_1517840310493_0.19981975085102022"},"directories":{},"publish_time":1517840311415,"_hasShrinkwrap":false,"_cnpm_publish_time":1517840311415,"_cnpmcore_publish_time":"2021-12-16T23:34:48.583Z"},"1.1.0":{"name":"random-access-storage","version":"1.1.0","description":"Easily make random-access-storage instances","main":"index.js","dependencies":{"inherits":"^2.0.3"},"devDependencies":{"standard":"^10.0.3","tape":"^4.8.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/random-access-storage/random-access-storage.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/random-access-storage/random-access-storage/issues"},"homepage":"https://github.com/random-access-storage/random-access-storage","gitHead":"1655b5950e035c3a0d0501b84a5a1de8f9e8b9ba","_id":"random-access-storage@1.1.0","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"c8551c46a3d07adaccb9ccc4fd1a1f6e3a818abd","size":5448,"noattachment":false,"key":"/random-access-storage/-/random-access-storage-1.1.0.tgz","tarball":"http://name.csiicloud.com:7001/random-access-storage/download/random-access-storage-1.1.0.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/random-access-storage-1.1.0.tgz_1517818945081_0.48862304794602096"},"directories":{},"publish_time":1517818946056,"_hasShrinkwrap":false,"_cnpm_publish_time":1517818946056,"_cnpmcore_publish_time":"2021-12-16T23:34:48.803Z"},"1.0.0":{"name":"random-access-storage","version":"1.0.0","description":"Easily make random-access-storage instances","main":"index.js","dependencies":{"inherits":"^2.0.3"},"devDependencies":{"standard":"^10.0.3","tape":"^4.8.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/random-access-storage/random-access-storage.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/random-access-storage/random-access-storage/issues"},"homepage":"https://github.com/random-access-storage/random-access-storage","gitHead":"6ffae087a15e5a225db7357d0472d7e12b21842c","_id":"random-access-storage@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"ff76c70dbc9f552514273db05d718a7f01608541","size":5007,"noattachment":false,"key":"/random-access-storage/-/random-access-storage-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/random-access-storage/download/random-access-storage-1.0.0.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/random-access-storage-1.0.0.tgz_1517778154793_0.7478278297930956"},"directories":{},"publish_time":1517778155731,"_hasShrinkwrap":false,"_cnpm_publish_time":1517778155731,"_cnpmcore_publish_time":"2021-12-16T23:34:49.043Z"},"0.0.0":{"name":"random-access-storage","version":"0.0.0","description":"Easily make random-access-storage instances","main":"index.js","dependencies":{"inherits":"^2.0.3"},"devDependencies":{"standard":"^10.0.3","tape":"^4.8.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/random-access-storage/random-access-storage.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/random-access-storage/random-access-storage/issues"},"homepage":"https://github.com/random-access-storage/random-access-storage","gitHead":"35efd846be2cc1499230b92728ace5cfad20e677","_id":"random-access-storage@0.0.0","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"df1f6227d130254ca7bbaf182312fbffdbd22eeb","size":4096,"noattachment":false,"key":"/random-access-storage/-/random-access-storage-0.0.0.tgz","tarball":"http://name.csiicloud.com:7001/random-access-storage/download/random-access-storage-0.0.0.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/random-access-storage-0.0.0.tgz_1517765292899_0.3913068105466664"},"directories":{},"publish_time":1517765293857,"_hasShrinkwrap":false,"_cnpm_publish_time":1517765293857,"_cnpmcore_publish_time":"2021-12-16T23:34:49.234Z"}},"readme":"# random-access-storage\n\nEasily make random-access-storage instances\n\n```\nnpm install random-access-storage\n```\n\nA random-access-storage instance is a common interface for a storage abstraction, that provides the following core api.\n\n* `read(offset, size)` - Read a buffer at a custom offset.\n* `write(offset, data)` - Write a buffer to a custom offset.\n* `del(offset, size)` - Delete data at a custom offset.\n\nThis module exposes a base class that implements most of the plumbing and flow you'd usually want to implement when making one.\n\n## Usage\n\n``` js\nconst RandomAccessStorage = require('random-access-storage')\nconst fs = require('fs')\n\nconst file = fileReader('index.js')\n\nfile.read(0, 10, (err, buf) => console.log('0-10: ' + buf.toString()))\nfile.read(40, 15, (err, buf) => console.log('40-55: ' + buf.toString()))\nfile.close()\n\nfunction fileReader (name) {\n  let fd = 0\n  return new RandomAccessStorage({\n    open: function (req) {\n      // called once automatically before the first read call\n      fs.open(name, 'r', function (err, res) {\n        if (err) return req.callback(err)\n        fd = res\n        req.callback(null)\n      })\n    },\n    read: function (req) {\n      const buf = Buffer.allocUnsafe(req.size)\n      fs.read(fd, buf, 0, buf.length, req.offset, function (err, read) {\n        if (err) return req.callback(err)\n        if (read < buf.length) return req.callback(new Error('Could not read'))\n        req.callback(null, buf)\n      })\n    },\n    close: function (req) {\n      if (!fd) return req.callback(null)\n      fs.close(fd, err => req.callback(err))\n    }\n  })\n}\n```\n\n## API\n\n#### `const storage = new RandomAccessStorage([options])`\n\nMake a new instance. Options include:\n\n``` js\n{\n  createAlways: false, // always create storage on first open\n  open: fn, // sets ._open\n  read: fn, // sets ._read\n  write: fn, // sets ._write\n  del: fn, // sets ._del\n  truncate: fn, // sets ._truncate\n  stat: fn, // sets ._stat\n  suspend: fn, // sets ._suspend\n  close: fn, // sets ._close\n  destroy: fn // sets ._destroy\n}\n```\n\n#### `storage.readable`\n\nTrue if the storage implements `._read`.\n\n#### `storage.writable`\n\nTrue if the storage implements `._write`.\n\n#### `storage.deletable`\n\nTrue if the storage implements `._del`.\n\n#### `storage.truncatable`\n\nTrue if the storage implements `._truncate`.\n\n#### `storage.statable`\n\nTrue if the storage implements `._stat`.\n\n#### `storage.opened`\n\nTrue if the storage has been fully opened.\n\n#### `storage.suspendable`\n\nTrue if the storage implements `._suspend`.\n\n#### `storage.closed`\n\nTrue if the storage has been fully closed.\n\n#### `storage.destroyed`\n\nTrue is the destorage has been fully destroyed.\n\n#### `storage.on('open')`\n\nEmitted when the storage is fully open.\n\n#### `storage.on('close')`\n\nEmitted when the storage is fully closed.\n\n#### `storage.on('destroy')`\n\nEmitted when the storage is fully destroyed.\n\n#### `storage.on('suspend')`\n\nEmitted when the storage is fully suspended\n\n#### `storage.on('unsuspend')`\n\nEmitted when the storage comes out of suspension.\n\n#### `storage.open(cb)`\n\nExplicitly open the storage. If you do not call this yourself,\nit will automatically called before any read/write/del/stat operation.\n\nIt is safe to call this more than once.\n\nTriggers *one* call to `_open` if you implement that.\n\n#### `storage._open(req)`\n\nImplement storage open.\n\n* `req.create` is `true` if the storage should be created.\n\nCall `req.callback` when it is fully opened.\n\n#### `storage.read(offset, size, callback)`\n\nRead the specified bytes from the storage at the specified byte offset.\nCalls the callback with a `(err, buffer)`.\n\n#### `storage._read(req)`\n\nImplement storage read.\n\n* `req.offset` contains the byte offset you should read at.\n* `req.size` contains the amount of bytes you should read.\n\nCall `req.callback(err, buffer)` when the read is completed.\n\nNote that this is guaranteed to run after the storage has been opened and not after it has been closed.\n\n#### `storage.write(offset, buffer, [callback])`\n\nWrite the specified buffer to the specified byte offset. Optionally pass a callback that is called with `(err)` when the write has completed.\n\n#### `storage._write(req)`\n\nImplement storage write.\n\n* `req.offset` contains the byte offset you should write at.\n* `req.data` contains the buffer you should write.\n\nCall `req.callback(err)` when the write is completed.\n\nNote that this is guaranteed to run after the storage has been opened and not after it has been closed.\n\n#### `storage.del(offset, size, [callback])`\n\nDelete the specified amount of bytes at the specified offset. Optionally pass a callback that is called with `(err)` when the delete has completed.\n\n#### `storage._del(req)`\n\nImplement storage delete.\n\n* `req.offset` contains the byte offset to delete at.\n* `req.size` contains the amount of bytes to delete.\n\nCall `req.callback(err)` when the delete has completed.\n\nNote that this is guaranteed to run after the storage has been opened and not after it has been closed.\n\n#### `storage.truncate(offset, [callback])`\n\nTruncate the storage at the specified offset. Optionally pass a callback that is called with `(err)` when the truncate has completed.\n\n#### `storage._truncate(req)`\n\nImplement storage truncate. Defaults to `storage._del(req)`.\n\n* `req.offset` contains the byte offset to truncate at.\n\nCall `req.callback(err)` when the truncate has completed.\n\nNote that this is guaranteed to run after the storage has been opened and not after it has been closed.\n\n#### `storage.stat(callback)`\n\nStat the storage. Should return an object with useful information about the underlying storage, including:\n\n```\n{\n  size: number // how many bytes of data is stored?\n}\n```\n\n#### `storage._stat(req)`\n\nImplement storage stat.\n\nCall `req.callback(err, statObject)` when the stat has completed.\n\nNote that this is guaranteed to run after the storage has been opened and not after it has been closed.\n\n#### `storage.suspend([callback])`\n\nSuspend (temporarily close) the storage instance.\n\n#### `storage._suspend(req)`\n\nImplement storage suspend. Defaults to calling `_close`.\n\nOptionally implement this to add a way for your storage instance to temporarily free resources.\n\nCall `req.callback(err)` when the storage has been fully suspended.\n\n#### `storage.close([callback])`\n\nClose the storage instance.\n\n#### `storage._close(req)`\n\nImplement storage close.\n\nCall `req.callback(err)` when the storage is fully closed.\n\nNote this is guaranteed to run after all pending read/write/stat/del operations has finished and no methods will run after.\n\n#### `storage.destroy([callback])`\n\nDestroy the storage instance, removing all underlying data.\n\n#### `storage._destroy(req)`\n\nImplement storage destroy.\n\nCall `req.callback(err)` when the storage has been fully destroyed.\n\nNote this is guaranteed to run after `.close()` has been called and no methods will be run after.\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/random-access-storage/random-access-storage","bugs":{"url":"https://github.com/random-access-storage/random-access-storage/issues"},"license":"MIT"}