{"_id":"@sammacbeth/random-access-idb-mutable-file","_rev":"2-c3907eff1d6bb0f491e105dba558d18f","name":"@sammacbeth/random-access-idb-mutable-file","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"version":"0.1.0","name":"@sammacbeth/random-access-idb-mutable-file","description":"random-access-storage provider via non-standard IDBMutableFile API","keywords":["random-access-idb-mutable-file","typed","flow"],"main":"lib/random-access-idb-mutable-file","module":"src/random-access-idb-mutable-file","unpkg":"dist/random-access-idb-mutable-file","author":{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com","url":"http://jeditoolkit.com"},"repository":{"type":"git","url":"git+https://github.com/Gozala/random-access-idb-mutable-file.git"},"license":"MIT","devDependencies":{"alias-quokka-plugin":"^0.1.0","babel-cli":"^6.26.0","babel-preset-env":"1.7.0","babel-preset-flow-node":"^2.0.1","babel-register":"^6.26.0","babelify":"8.0.0","blue-tape":"^1.0.0","browserify":"16.2.2","documentation":"8.0.0","faucet":"0.0.1","flow-bin":"^0.75.0","flow-copy-source":"^2.0.0","hypercore":"6.16.0","karma":"2.0.4","karma-babel-preprocessor":"7.0.0","karma-browserify":"5.3.0","karma-firefox-launcher":"1.1.0","karma-source-map-support":"1.3.0","karma-tap":"4.1.4","karma-tap-pretty-reporter":"4.1.0","lint-staged":"^7.2.0","prettier":"^1.13.6","random-access-test":"git+https://github.com/Gozala/random-access-test.git","rollup":"0.61.2","rollup.config.flow":"1.1.0","watchify":"3.11.0"},"scripts":{"test":"npm run test:flow && npm run test:tape","test:tape":"karma start --single-run","test:watch":"karma start","test:flow":"flow check","build:clear":"rm -rf lib","build:types":"flow-copy-source --verbose src lib","build:node":"babel --out-dir lib src","build:umd":"BABEL_ENV=umd rollup -c --files random-access-idb-mutable-file","build:api":"documentation readme --section=API src/random-access-idb-mutable-file.js","build:docs":"documentation build --document-exported src/** -f html --o docs","build":"npm run build:node && npm run build:types","precommit":"lint-staged","start":"flow-copy-source --watch --verbose src lib & babel --watch --out-dir lib src"},"lint-staged":{"*.js":["prettier --parser flow --no-semi --write","git add"]},"quokka":{"alias":{"random-access-idb-mutable-file":"src/random-access-idb-mutable-file"},"pro":true,"babel":{"env":"development"},"plugins":["alias-quokka-plugin"]},"dependencies":{"buffer":"5.1.0","random-access-storage":"1.3.0"},"gitHead":"f0072cd27e2184b7f21b35661d2b9fcec7924c68","bugs":{"url":"https://github.com/Gozala/random-access-idb-mutable-file/issues"},"homepage":"https://github.com/Gozala/random-access-idb-mutable-file#readme","_id":"@sammacbeth/random-access-idb-mutable-file@0.1.0","_npmVersion":"6.4.1","_nodeVersion":"10.10.0","_npmUser":{"name":"sammacbeth","email":"sam@cliqz.com"},"dist":{"integrity":"sha512-QShxL7fw9orCDVD/sSSOdc6VjiaBPUsy+AIT1jkr9O2LYEpwviGn7NYyxzMgpYywT02mIWa6/mr91DeLINkNAg==","shasum":"91ae6bddfb774e5622ccc7902da7feda9d372cac","tarball":"https://registry.npmjs.org/@sammacbeth/random-access-idb-mutable-file/-/random-access-idb-mutable-file-0.1.0.tgz","fileCount":52,"unpackedSize":603904,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJborb6CRA9TVsSAnZWagAABq4QAKSmcf18rsrU19BngJUb\n49PCGi1S4z3XySZYLiqD7c9Wn/PKEnrAHcQxwRn8tJrOPa8m5OVXQmRdd1FS\nvOo3yG3fzjB7ASuyCpkl+PnSajAT81bLSDz2puYEgwqVzQOLjHxWeFenu26x\nawmxocp5EZ3j1Af0LTo1THfkVRIJ85oBFoIhFG4V5wAVk5GB2cODvG7X5Dn/\nhd2CKSZT0ITCxpIaO2u9TO6E0bR4ArziRMSZKymDCTyQkGfFE8Fu0ILGiDG0\n5O/yYhkF40ndkc152gukPxgFtM++qwNo785aDb5k8nBYRx/1safJ3Q/5IWdu\nrj7LAvVqohWKBNPRYK+ozQbigYPcMxj2Af3pfLHMObj7WUtVUMFgafSmTGUt\n6wRt+BvViKWSIaBPbLq5Z62h6qJnyQryl0oKWCnDrMm7YXEhDxKbDcHJkrfh\n7BNQFoBVX++L0iMK/+a1CMSyGgsWRkbVT7xI8mGJ3hAfz/dHX006A/7FVXpp\npWyQGafAvEIG9/k2TrpKYoO1W12FGIkoE8X5Ld7fg3PApNEUlJd9ZuYOuTUw\nAN/uf9N3oZDSRxLcc/2e/Dsbo7PHbTyZRxhH8XIP+tusrNGUQh/rODZO0oe8\nMfFm2M4Zof4eIDH5yCMFyOd5vi09gHVTLKCnD0bNVeKzpIlkkTMHbRhdifWI\nt4PS\r\n=mUMS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGz9W+GlgkCQMbTuWozrcaf0iYBd/hpO33cT1emS0RJXAiAfpooJS1thbbvbYGr/4RuM3M60xG+piv6r+sChoEUedQ=="}]},"maintainers":[{"name":"sammacbeth","email":"sam@cliqz.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/random-access-idb-mutable-file_0.1.0_1537390329774_0.6007701851913405"},"_hasShrinkwrap":false},"0.1.1":{"version":"0.1.1","name":"@sammacbeth/random-access-idb-mutable-file","description":"random-access-storage provider via non-standard IDBMutableFile API","keywords":["random-access-idb-mutable-file","typed","flow"],"main":"lib/random-access-idb-mutable-file","module":"src/random-access-idb-mutable-file","unpkg":"dist/random-access-idb-mutable-file","author":{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com","url":"http://jeditoolkit.com"},"repository":{"type":"git","url":"git+https://github.com/Gozala/random-access-idb-mutable-file.git"},"license":"MIT","devDependencies":{"alias-quokka-plugin":"^0.1.0","babel-cli":"^6.26.0","babel-preset-env":"1.7.0","babel-preset-flow-node":"^2.0.1","babel-register":"^6.26.0","babelify":"8.0.0","blue-tape":"^1.0.0","browserify":"16.2.2","documentation":"8.0.0","faucet":"0.0.1","flow-bin":"^0.75.0","flow-copy-source":"^2.0.0","hypercore":"6.16.0","karma":"2.0.4","karma-babel-preprocessor":"7.0.0","karma-browserify":"5.3.0","karma-firefox-launcher":"1.1.0","karma-source-map-support":"1.3.0","karma-tap":"4.1.4","karma-tap-pretty-reporter":"4.1.0","lint-staged":"^7.2.0","prettier":"^1.13.6","random-access-test":"git+https://github.com/Gozala/random-access-test.git","rollup":"0.61.2","rollup.config.flow":"1.1.0","watchify":"3.11.0"},"scripts":{"test":"npm run test:flow && npm run test:tape","test:tape":"karma start --single-run","test:watch":"karma start","test:flow":"flow check","build:clear":"rm -rf lib","build:types":"flow-copy-source --verbose src lib","build:node":"babel --out-dir lib src","build:umd":"BABEL_ENV=umd rollup -c --files random-access-idb-mutable-file","build:api":"documentation readme --section=API src/random-access-idb-mutable-file.js","build:docs":"documentation build --document-exported src/** -f html --o docs","build":"npm run build:node && npm run build:types","precommit":"lint-staged","start":"flow-copy-source --watch --verbose src lib & babel --watch --out-dir lib src"},"lint-staged":{"*.js":["prettier --parser flow --no-semi --write","git add"]},"quokka":{"alias":{"random-access-idb-mutable-file":"src/random-access-idb-mutable-file"},"pro":true,"babel":{"env":"development"},"plugins":["alias-quokka-plugin"]},"dependencies":{"buffer":"5.1.0","random-access-storage":"1.3.0"},"gitHead":"f0072cd27e2184b7f21b35661d2b9fcec7924c68","bugs":{"url":"https://github.com/Gozala/random-access-idb-mutable-file/issues"},"homepage":"https://github.com/Gozala/random-access-idb-mutable-file#readme","_id":"@sammacbeth/random-access-idb-mutable-file@0.1.1","_npmVersion":"6.2.0","_nodeVersion":"10.8.0","_npmUser":{"name":"sammacbeth","email":"sam@cliqz.com"},"dist":{"integrity":"sha512-jHnpuu2qtFgwCmhgrpCCk3/hU3XqXTqhidh4XmcTijkVsGwh1c2T0+r2hkHs1PRfsxeimx8qDAotphpRoYB2eg==","shasum":"eec1841c83f765b34a508015a9124c400481c8d4","tarball":"https://registry.npmjs.org/@sammacbeth/random-access-idb-mutable-file/-/random-access-idb-mutable-file-0.1.1.tgz","fileCount":28,"unpackedSize":464822,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb3cUPCRA9TVsSAnZWagAA9X4P+gIlglnHoTT4l852fN1j\nwkx3kOmLefZj4W0ZKBTSYhoBLKr/FSSQ8xTRWjXkvLH6GxQdxhiS4DfKpNd/\nWmC0IscOsae3y2SEHBBE+ldTHSD0eYFr/FBMDvItjaMqInad4NWw1ZOkDngb\nUDIXlbGPGMM+nE4JOFDhvm0lt0pi+97LvnLi8wf9Ye7q5cGGaqRlwG1X5oRL\nCstQJsvOmaJ82gIPD0hzcuUsPcloYxfnW8YOUIk7lqfHEIRnqYmyusGH9Dx6\ngmEIok7M5VMika+LzVeIBRh1eXEQY2QiFUZBtNp4GxCJGNWvrhQQBdX0pIlZ\n8+RpdsIJ5ymQyMAvAwL+fOiZgVkHojffNialFErSXOyu1RwjHSEp9sdGZ3kD\nyy1cVahmGTkAq0oeEHUfaQM3bmpHDpvkm3B8rk9nkoJqrmOHwbbd9aUEXdcE\nN8Ci3euTLOujTJ0JZmjaFQE8LQysM7zeUeIMeq6qGod4EKSicdPi8tuRZ6K7\nuWffyorTUTHsGKL3AmDJesFlfJCqijQsPkvga/zGw8NDR+NFd05HAs8I9vMu\nxFYxyGjarJ7XRJcli2AtM5BUhifS1tcSeCDg2JgTWkhxak4pfuYxF1kW12m4\nIUKDyYxqZJ+EE1ym/ALi6Oy6dlCRhIR8LNzOMRSKEjV8S3Wf9iQl8qU1B1Kw\n5rRA\r\n=yNS2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDk6ySawQo7vFd/aNB9sMkScoKWjBKbRz7hmBLZ3vj0DQIgSPkQKRDwYinFUp8yVCJOSW2rNhpflOA4Lwftsysy6bI="}]},"maintainers":[{"name":"sammacbeth","email":"sam@cliqz.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/random-access-idb-mutable-file_0.1.1_1541260558945_0.78513044468563"},"_hasShrinkwrap":false}},"time":{"created":"2018-09-19T20:52:09.613Z","0.1.0":"2018-09-19T20:52:09.963Z","modified":"2022-04-06T21:29:02.645Z","0.1.1":"2018-11-03T15:55:59.085Z"},"maintainers":[{"name":"sammacbeth","email":"sam@cliqz.com"}],"description":"random-access-storage provider via non-standard IDBMutableFile API","homepage":"https://github.com/Gozala/random-access-idb-mutable-file#readme","keywords":["random-access-idb-mutable-file","typed","flow"],"repository":{"type":"git","url":"git+https://github.com/Gozala/random-access-idb-mutable-file.git"},"author":{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com","url":"http://jeditoolkit.com"},"bugs":{"url":"https://github.com/Gozala/random-access-idb-mutable-file/issues"},"license":"MIT","readme":"# random-access-idb-mutable-file\n\n[![travis][travis.icon]][travis.url]\n[![package][version.icon] ![downloads][downloads.icon]][package.url]\n[![styled with prettier][prettier.icon]][prettier.url]\n\n[random-access][random-access-storage] storage layer over [IDBMutableFile][], which is **non-standard** IndexedDB extension in Gecko to provide virtual file system API with-in the IndexedDB.\n\nThis library will only work in Firefox (unless other browsers implement [IDBMutableFile][] API) and it's mostly targeted at [WebExtensions][]. It mostly amis to be a drop-in replacement for [random-access-file][]. It is also an alternative to [random-access-idb][] that is able to avoid loading all of the file content for random read / writes at the expanse of limited runtime suport.\n\n## Usage\n\n```js\nimport RandomAccess from \"random-access-idb-mutable-file\"\n\nconst main = async (filename, options) => {\n  const randomAccessFile = await RandomAccess.mount()\n\n  const file = randomAccessFile(filename, options)\n  file.write(10, Buffer.from(\"hello\"), error => {\n    // write a buffer to offset 10\n    file.read(10, 5, (error, buffer) => {\n      console.log(buffer) // read 5 bytes from offset 10\n      file.close(() => {\n        console.log(\"file is closed\")\n      })\n    })\n  })\n}\n```\n\n## Install\n\n    npm install random-access-idb-mutable-file\n\n[travis.icon]: https://travis-ci.org/Gozala/random-access-idb-mutable-file.svg?branch=master\n[travis.url]: https://travis-ci.org/Gozala/random-access-idb-mutable-file\n[version.icon]: https://img.shields.io/npm/v/random-access-idb-mutable-file.svg\n[package.url]: https://npmjs.org/package/random-access-idb-mutable-file\n[downloads.icon]: https://img.shields.io/npm/dm/random-access-idb-mutable-file.svg\n[downloads.url]: https://npmjs.org/package/random-access-idb-mutable-file\n[prettier.icon]: https://img.shields.io/badge/styled_with-prettier-ff69b4.svg\n[prettier.url]: https://github.com/prettier/prettier\n[random-access-storage]: https://github.com/random-access-storage/random-access-storage\n[random-access-file]: https://github.com/random-access-storage/random-access-file\n[idbmutablefile]: https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile\n[webextensions]: https://developer.mozilla.org/en-US/Add-ons/WebExtensions\n[random-access-idb]: https://github.com/random-access-storage/random-access-idb\n","readmeFilename":"Readme.md"}