{"_id":"random-access-idb-mutable-file","_rev":"5-842f596470ed33f3019280118c264a5c","name":"random-access-idb-mutable-file","dist-tags":{"latest":"0.3.0"},"versions":{"0.1.0":{"version":"0.1.0","name":"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":"https://github.com/Gozala/random-access-idb-mutable-file"},"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":"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","prepublishOnly":"npm run build && npm run build:umd && npm test","install":"npm run build","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"},"licenseText":"Copyright 2018 Irakli Gozalishvili. All rights reserved.\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to\ndeal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or\nsell copies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\nIN THE SOFTWARE.\n","_id":"random-access-idb-mutable-file@0.1.0","dist":{"shasum":"473584ec108804b938605d1c9e47c6b168cc5a7c","tarball":"https://registry.npmjs.org/random-access-idb-mutable-file/-/random-access-idb-mutable-file-0.1.0.tgz","fileCount":37,"unpackedSize":187675,"integrity":"sha512-zJtJLYprHrMyh5S3Y4/iPBnI3N3BUO2x35tNLsyhEBOKNMstXtzUO4DHMBruGM5co5FdrZK0phfMz6au9LSgeA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCVcaMhwzOCWwOM0srMQRWV+DGmpWhiJwBJuFJTOGhhzAIhALqWuYHa/c7IL+gLkGhFmAY/nV9aqqOG7k4v1YUkzJ3r"}]},"maintainers":[{"name":"gozala","email":"rfobic@gmail.com"}],"_npmUser":{"name":"gozala","email":"rfobic@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/random-access-idb-mutable-file_0.1.0_1529970698313_0.8385354043762654"},"_hasShrinkwrap":false},"0.2.0":{"version":"0.2.0","name":"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","unpkg":"dist/random-access-idb-mutable-file","author":{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com","url":"http://jeditoolkit.com"},"repository":{"type":"git","url":"https://github.com/Gozala/random-access-idb-mutable-file"},"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":"https://github.com/Gozala/random-access-test.git","rollup":"0.61.2","rollup.config.flow":"1.1.0","watchify":"^3.11.1"},"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","prepublishOnly":"npm run build && npm run build:umd && npm test","install":"npm run build","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"},"licenseText":"Copyright 2018 Irakli Gozalishvili. All rights reserved.\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to\ndeal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or\nsell copies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\nIN THE SOFTWARE.\n","_id":"random-access-idb-mutable-file@0.2.0","dist":{"shasum":"d6856232e351cb6468c45206346e84b29ca186d1","integrity":"sha512-OCgFR81tMkWG+M140eXOkspWymEjxu3ip2ZnT+nkiIPCGmVkhd6pszIa4MJDdHBKx8o0N4VaV5vPU1sEfLvifA==","tarball":"https://registry.npmjs.org/random-access-idb-mutable-file/-/random-access-idb-mutable-file-0.2.0.tgz","fileCount":37,"unpackedSize":187626,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc+YDYCRA9TVsSAnZWagAAvZUQAKAREgs52iEZTChr6zfd\ngyelL8tGZ7MdqSVl7EEGaA5g4hiYNeVKb/4jfhiHEJo6fogWin2CX9DvllAw\n/LAzakNwUbhIU3fA8X30/7NkyLw9/o7ekRz4l1SlghWwYqCBDjDb9jGPi7+U\nICwF1aymlh5B1UMcl4pGVhPZ7Kn9JIPHRVaU4AEULbxd7heASs5YGlK1YSSf\nPyZKag52dsPUFeHFVcCxJngGfvx5sLbBuW4oVHnPxgqgi4IRCv2ImROZqhB8\ncrRwwPihc5mQOccOfeEfylnosU5r9/fBgjYaAMP7c3Fyu0bxaUfVXWiLKpsH\nBvNUbycLvFEw7hLDqWMYwu0nOobz7q9zr+gn4FsAn72pKaVBwI27FrwNeRqA\ncUVIkpcEhFr7Tlc1Tf7FQnvzAiqqNCuU28tM3ujrMB8R6NAJ2SjT45L06sOd\n2e18MK/Z3HfkRvjpwPgLvwDh1Y6xGvRITblRNcqrmVZ+Up9S6Ep7kz87Bcju\nwYDqMzCZv5N8SbKQ7I80ai4k5mk2UMZJMsMkYIsYZpnrMewtARKnPp9tqvxw\na7tM4eY9sFszeJ9G7SMuPAqEH3IOQdz9QE6f6PzJeUYBdc1+9YSQXNw5jjji\nRxe9dGb/kSeXLsmBvoIdFKxFOpoKb30+slGsQtSuV7aju6l6BJ5IGRiLWZUM\nBem8\r\n=MNw0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB1/Ee2WHR2+9Yk2raPhNF2UOkS2qmpowYK4RbDFjS7iAiAINsXZIA6jVDLzSg2BEmL+8vmowhmAI35CG7RuSgRjpw=="}]},"maintainers":[{"name":"gozala","email":"rfobic@gmail.com"}],"_npmUser":{"name":"gozala","email":"rfobic@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/random-access-idb-mutable-file_0.2.0_1559855320408_0.15695807082154567"},"_hasShrinkwrap":false},"0.3.0":{"version":"0.3.0","name":"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","unpkg":"dist/random-access-idb-mutable-file","author":{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com","url":"http://jeditoolkit.com"},"repository":{"type":"git","url":"https://github.com/Gozala/random-access-idb-mutable-file"},"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":"https://github.com/Gozala/random-access-test.git","rollup":"0.61.2","rollup.config.flow":"1.1.0","watchify":"^3.11.1"},"scripts":{"pretest":"npm run build","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","prepublishOnly":"npm run build && npm run build:umd && npm test","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"},"licenseText":"Copyright 2018 Irakli Gozalishvili. All rights reserved.\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to\ndeal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or\nsell copies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\nIN THE SOFTWARE.\n","_id":"random-access-idb-mutable-file@0.3.0","dist":{"shasum":"736bcdd8bb4c5a6d13d14cbb17daf1c44e52d850","integrity":"sha512-CdVAoFNNDn5uAgYOJ8J3ICSaFzaMOa95XnYcX+taj4jirJuRASiTyQSOGR+Z0K8ZkBGuj0A8ivyeRAWuxRCgQA==","tarball":"https://registry.npmjs.org/random-access-idb-mutable-file/-/random-access-idb-mutable-file-0.3.0.tgz","fileCount":37,"unpackedSize":187833,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc+sVGCRA9TVsSAnZWagAAz3IQAI3q63GFSzVv3a9FgtTa\nsPghTM3CyBGxwqa+SAyvK90LBlDw/PyKQnJNWpOontRvdMnKf1ya/eBvc1cv\nYEdL5XOdDwfKy5dlz/NTH6IgCc8fKO4xOa5tKspw3LA1nOtfXNKOVSbr8Ox/\niY0KNCgm2df83SDYeDVAX9oRt7UciachUuw+nuL0NKzPwk/T1y2iC5Dwqa8I\nnqBKjrxEg4jKcHif0zyMZVxFVliLTkBsh8xtBWYLxw1ST4zU/+oulNtEI3QC\n4E3+pSXKjP7PpDBLZfl83Y/n+mFchq2wzc7CoYIh6dPARDQ1mHHuJ+Sc2brn\nXg4S3MD2al32SLqo4cwX630AAFivpetkxPUik7mSImtgQqCaQV9sv542W0wO\nR3Phta6dSdCjHv9ldrNAedyBu7/Y93M9P/kT4RvJ+ZdD/Hm6XEfXaph8BoD1\nBOocnIESMaWT0pfjMGy+snMVIR01YiGVuocTJAoRNGs8DbV5c5uPvLzHGo8z\nRkpf/TY9GJvx7VGwgwOaTaMhh2LOn+sRXCJBt0JbJBzn4m9KS9iziy97oREy\no061V9p6Yxt3JMhCnrwlPOp3wn54HrkIVK+itoAwb/o9Al3RwnWOa6Vn/xvY\nMpgoO7YIvKfsUKN5ymmhTUvvvfnnmKzl+BL/zkJrxUm+Stj30PxPGC6Gin/B\nU0Jt\r\n=DmOC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPMZix1ftagE2QnXdQ6HgtD6Tj5w4UX0AUD9lhkCAIugIhAIfPmsO/CI++Xax++IUObP/DPulhl4sJyCmJRK1TTkP4"}]},"maintainers":[{"name":"gozala","email":"rfobic@gmail.com"}],"_npmUser":{"name":"gozala","email":"rfobic@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/random-access-idb-mutable-file_0.3.0_1559938373798_0.3750936791489372"},"_hasShrinkwrap":false}},"time":{"created":"2018-06-25T23:51:38.311Z","0.1.0":"2018-06-25T23:51:38.405Z","modified":"2022-06-25T11:13:45.745Z","0.2.0":"2019-06-06T21:08:40.499Z","0.3.0":"2019-06-07T20:12:53.897Z"},"maintainers":[{"name":"gozala","email":"rfobic@gmail.com"}],"description":"random-access-storage provider via non-standard IDBMutableFile API","keywords":["random-access-idb-mutable-file","typed","flow"],"repository":{"type":"git","url":"https://github.com/Gozala/random-access-idb-mutable-file"},"author":{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com","url":"http://jeditoolkit.com"},"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"}