{"_id":"multi-random-access","_rev":"9-5ca24d5aac2f25ccb6b98f7c46abb590","name":"multi-random-access","description":"An abstract-random-access compliant instance that combines multiple other abstract-random-access instances into a single one.","dist-tags":{"latest":"2.1.1"},"versions":{"1.0.0":{"name":"multi-random-access","version":"1.0.0","description":"An abstract-random-access compliant instance that combines multiple other abstract-random-access instances into a single one.","main":"index.js","dependencies":{},"devDependencies":{"standard":"^7.1.2"},"scripts":{"test":"standard"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/multi-random-access.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/multi-random-access/issues"},"homepage":"https://github.com/mafintosh/multi-random-access","gitHead":"66f96074ae98a04b71435865cae11a7d714a8617","_id":"multi-random-access@1.0.0","_shasum":"cbf26a9c4cdb6795dcec2b38dc69e476c4567ee6","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.4.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"cbf26a9c4cdb6795dcec2b38dc69e476c4567ee6","tarball":"https://registry.npmjs.org/multi-random-access/-/multi-random-access-1.0.0.tgz","integrity":"sha512-8NI8ot7aVTLetrbxonMopq6RFlVx4HLfbStPuMOMEUpuZFVsSNvD3mKKWAjRYTyCCLYujS4b3rd/APl16KMZ7g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDqTDsxZt19D2COpwvrLpS9hL9G9+biCSF6C+u5XINzjAiBzB6qocTc/G8uerZ3LYBda+YmjOJrGWz/rMd2WxffqXw=="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/multi-random-access-1.0.0.tgz_1470069886728_0.37105394271202385"}},"2.0.0":{"name":"multi-random-access","version":"2.0.0","description":"An abstract-random-access compliant instance that combines multiple other abstract-random-access instances into a single one.","main":"index.js","dependencies":{"abstract-random-access":"^1.0.2","inherits":"^2.0.1"},"devDependencies":{"random-access-memory":"^2.1.0","standard":"^7.1.2","tape":"^4.6.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/multi-random-access.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/multi-random-access/issues"},"homepage":"https://github.com/mafintosh/multi-random-access","gitHead":"c1cf9b0a15dc65d12e265d8110b9e98a9b1ebb46","_id":"multi-random-access@2.0.0","_shasum":"4de0f02d4bb34ff1f5df18b8b5f0a1a3658227d2","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.6","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"4de0f02d4bb34ff1f5df18b8b5f0a1a3658227d2","tarball":"https://registry.npmjs.org/multi-random-access/-/multi-random-access-2.0.0.tgz","integrity":"sha512-FcSnoMlyiUwC6V3BP7tkkU9rd8GU5D0BRYtC1s1LR5GGYBwJtInlDTtmDpTWU9M14lipAjfYVhRX7Kg1D6iSSg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHX1InNUIe030t9S2kVEJcDwafwyluACr2IXevByURJ0AiEAlWB4hYkdNJqsT1O/PX8ZMXd8wTgmCGxb5aAAw+P/3g4="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/multi-random-access-2.0.0.tgz_1475779779004_0.9153620102442801"}},"2.0.1":{"name":"multi-random-access","version":"2.0.1","description":"An abstract-random-access compliant instance that combines multiple other abstract-random-access instances into a single one.","main":"index.js","dependencies":{"abstract-random-access":"^1.1.2","inherits":"^2.0.1"},"devDependencies":{"random-access-memory":"^2.1.0","standard":"^7.1.2","tape":"^4.6.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/multi-random-access.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/multi-random-access/issues"},"homepage":"https://github.com/mafintosh/multi-random-access","gitHead":"2e538247c0f40b92e308feecd4bfbafef09fbfb2","_id":"multi-random-access@2.0.1","_shasum":"7837e2771edca5c14527fbb111db92f1b07718e0","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"7837e2771edca5c14527fbb111db92f1b07718e0","tarball":"https://registry.npmjs.org/multi-random-access/-/multi-random-access-2.0.1.tgz","integrity":"sha512-8Kw0fEOU9NnJWTQH9+sl+kmTlX5EJD0EgHPi7OSN0wRdm83ELbmszrggVSscD6o/BKqf0RKk+WXbQmcy6CCXSw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCEthkERdnwzBznRbji4/zwBX2/P7tGBif3LjN6VpgWwAIgYMejv1Sp+O7PRAw3sgLwQDFHPNdBo8lTQbll9Dn+QE8="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/multi-random-access-2.0.1.tgz_1476982160689_0.6951770787127316"}},"2.0.2":{"name":"multi-random-access","version":"2.0.2","description":"An abstract-random-access compliant instance that combines multiple other abstract-random-access instances into a single one.","main":"index.js","dependencies":{"abstract-random-access":"^1.1.2","inherits":"^2.0.1"},"devDependencies":{"random-access-memory":"^2.1.0","standard":"^7.1.2","tape":"^4.6.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/multi-random-access.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/multi-random-access/issues"},"homepage":"https://github.com/mafintosh/multi-random-access","gitHead":"800b85bfc60abac6df87348193ee93f860c9b535","_id":"multi-random-access@2.0.2","_shasum":"f449e9924233ce069ec116962c0c9deef90c2de8","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"f449e9924233ce069ec116962c0c9deef90c2de8","tarball":"https://registry.npmjs.org/multi-random-access/-/multi-random-access-2.0.2.tgz","integrity":"sha512-Nln+uKq+HSZcfw2HT1OPsU1SVEZZl8qV5X+d0xzz9IHghn6bmK6R4uritTbKbBcusA14/qBWET/kfw3J8gfs5g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAs+Hq5qx7RkYUd6WNT8PFZ9+4km+sdJ2MWCOGwtj+4qAiBlPci1F28KimFh2Xz+zX1ETZwOOOUt6/A/EgOBVhrubA=="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/multi-random-access-2.0.2.tgz_1477056517546_0.39472809969447553"}},"2.0.3":{"name":"multi-random-access","version":"2.0.3","description":"An abstract-random-access compliant instance that combines multiple other abstract-random-access instances into a single one.","main":"index.js","dependencies":{"abstract-random-access":"^1.1.2","inherits":"^2.0.1","sorted-array-functions":"^1.0.0"},"devDependencies":{"random-access-memory":"^2.1.0","standard":"^7.1.2","tape":"^4.6.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/multi-random-access.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/multi-random-access/issues"},"homepage":"https://github.com/mafintosh/multi-random-access","gitHead":"b63ac3dc59270ab26acfaf26fbe945d678f6f3ef","_id":"multi-random-access@2.0.3","_shasum":"24194e9070761f6a72ff9c354aefc94173351356","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"24194e9070761f6a72ff9c354aefc94173351356","tarball":"https://registry.npmjs.org/multi-random-access/-/multi-random-access-2.0.3.tgz","integrity":"sha512-vlKf4AHIElwig8Sk+MI28J6icuczzn0Pvz+9KSRRKmVb5yfZUNKB+JhY4f1NaGmIyT4hBNvYDdG+4YJjrb6IZQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICuBzUnQQlFmRyTOIZVwFWRaD3A8zp4gejD8v3VIy4BqAiBhBY7UqrF130JKpKpvaRc4qarxPnCO849GO/D/H5L3Ow=="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/multi-random-access-2.0.3.tgz_1477304907000_0.43697730265557766"}},"2.1.0":{"name":"multi-random-access","version":"2.1.0","description":"An abstract-random-access compliant instance that combines multiple other abstract-random-access instances into a single one.","main":"index.js","dependencies":{"abstract-random-access":"^1.1.2","inherits":"^2.0.1","sorted-array-functions":"^1.0.0"},"devDependencies":{"random-access-memory":"^2.4.0","standard":"^7.1.2","tape":"^4.6.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/multi-random-access.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/multi-random-access/issues"},"homepage":"https://github.com/mafintosh/multi-random-access","gitHead":"387b0a4b9f63c68a58ebbd90331d40c8c8061494","_id":"multi-random-access@2.1.0","_shasum":"48c36c0f8c578ae8e073c11be64a91383b04dabc","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"48c36c0f8c578ae8e073c11be64a91383b04dabc","tarball":"https://registry.npmjs.org/multi-random-access/-/multi-random-access-2.1.0.tgz","integrity":"sha512-y8p1otJZAzQqzZu8PUtZQV1LwnVggXyH5iEYGQn6vWjXFBL2AoM7TxzICPPdNrS1+s+L5Y1FmK+ol1k08DDXrg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBkVVzBIqwza1Q9SfoCEOmXRKd0mSpDCaUGzf/KJCfWWAiAtmZSLYbBO19zS6ECMH6iovAfgCDDVB+1+pKfVoOLWLA=="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/multi-random-access-2.1.0.tgz_1492692698952_0.019210152560845017"}},"2.1.1":{"name":"multi-random-access","version":"2.1.1","description":"An abstract-random-access compliant instance that combines multiple other abstract-random-access instances into a single one.","main":"index.js","dependencies":{"abstract-random-access":"^1.1.2","inherits":"^2.0.1","sorted-array-functions":"^1.0.0"},"devDependencies":{"random-access-memory":"^2.4.0","standard":"^9.0.2","tape":"^4.6.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/multi-random-access.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/multi-random-access/issues"},"homepage":"https://github.com/mafintosh/multi-random-access","gitHead":"af38cadc31b6ce4c309cc69be2e10f9ccb16dbf8","_id":"multi-random-access@2.1.1","_shasum":"6462f1b204109ccc644601650110a828443d66e2","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"6462f1b204109ccc644601650110a828443d66e2","tarball":"https://registry.npmjs.org/multi-random-access/-/multi-random-access-2.1.1.tgz","integrity":"sha512-H3nckn57EbTeaXyewTsUAdXx0mYFSmmjQx/WWG8DlioxOzNcCXvtYEEEVYLaPxICrU3xMSdmH4XjLHUozDFtMQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBxi8+6Rj5Jv9oio/UpiM3OM0Dc7/UB7QWooOhoyFaA3AiAzoeNP1L9AmxR29vSam83Uty/lbxX9ZodR+R+TAxTaQA=="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/multi-random-access-2.1.1.tgz_1493152034049_0.5445025919470936"}}},"readme":"# multi-random-access\n\nAn [abstract-random-access](https://github.com/juliangruber/abstract-random-access) compliant instance (API similar to [random-access-file](https://github.com/mafintosh/random-access-file)) that combines multiple other abstract-random-access instances into a single one.\n\n```\nnpm install multi-random-access\n```\n\n[![build status](http://img.shields.io/travis/mafintosh/multi-random-access.svg?style=flat)](http://travis-ci.org/mafintosh/multi-random-access)\n\n## Usage\n\nIn the below example we'll create a multi-random-access instance that writes to different instances of [random-access-memory](https://github.com/mafintosh/random-access-memory), each containing 10 bytes of data.\n\n``` js\nvar multi = require('multi-random-access')\nvar ram = require('random-access-memory')\n\nvar storage = multi(function (offset, cb) {\n  var index = Math.floor(offset / 10)\n\n  console.log('Creating new underlying storage')\n\n  cb(null, {\n    start: index * 10,\n    end: index * 10 + 10,\n    storage: ram()\n  })\n})\n\nstorage.write(0, Buffer('hello world'), function (err) {\n  if (err) throw err\n  storage.read(0, 11, function (err, buf) {\n    if (err) throw err\n    console.log(buf.toString())\n  })\n})\n```\n\n## API\n\n#### `var storage = multi([options], open)`\n\nCreate a new instance. `open` is a function that is called when a new storage instance is needed. A new instance is needed when a read or write happens in a byte range that has not been opened yet.\n\nThe signature for open is `(offset, cb)`. You should call the callback with an object containing the following properties:\n\n``` js\nfunction open (offset, cb) {\n  cb(null, {\n    start: startByteOffset,\n    end: endByteOffset,\n    storage: abstractRandomAccessInstance\n  })\n}\n```\n\nOptions include:\n\n``` js\n{\n  limit: 16 // start closes old stores after this many was opened\n}\n```\n\n## License\n\nMIT\n","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"time":{"modified":"2022-06-20T13:24:58.000Z","created":"2016-08-01T16:44:47.624Z","1.0.0":"2016-08-01T16:44:47.624Z","2.0.0":"2016-10-06T18:49:39.228Z","2.0.1":"2016-10-20T16:49:22.399Z","2.0.2":"2016-10-21T13:28:38.442Z","2.0.3":"2016-10-24T10:28:29.120Z","2.1.0":"2017-04-20T12:51:39.711Z","2.1.1":"2017-04-25T20:27:15.818Z"},"homepage":"https://github.com/mafintosh/multi-random-access","repository":{"type":"git","url":"git+https://github.com/mafintosh/multi-random-access.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"bugs":{"url":"https://github.com/mafintosh/multi-random-access/issues"},"license":"MIT","readmeFilename":"README.md"}