{"_id":"random-access-open","_rev":"9-8bcd9624e9c2267032d65b2d3499cd14","name":"random-access-open","description":"Open a file for random access read / write and create the file if it doesn't exist","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"random-access-open","version":"1.0.0","description":"Open a file for random access read / write and create the file if it doesn't exist","main":"index.js","dependencies":{},"devDependencies":{"standard":"^5.4.1","tape":"^4.4.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/random-access-open.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/random-access-open/issues"},"homepage":"https://github.com/mafintosh/random-access-open","gitHead":"e5bf16d3e3f788e2654877e54d71e702c42e82f8","_id":"random-access-open@1.0.0","_shasum":"4438c80049585d28c70f59b82991738becdd4bb3","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"4438c80049585d28c70f59b82991738becdd4bb3","tarball":"https://registry.npmjs.org/random-access-open/-/random-access-open-1.0.0.tgz","integrity":"sha512-da1G9Qczy+QB+VKyjpFl4BhuKxLfLOTKSPeZToB9kq0tTwgU5387wvwW89TL+mtZQYuMPC+ScOnJpq8csm4CwA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJG3BtWYKl4plBxP+Ql/Q1ftW2gSTfl6zOBEaAA+TfyAIhAMXbt3E+ClCtwR9rvq2+NUaC5FdARXDOCCxMWx778h01"}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}]},"1.0.1":{"name":"random-access-open","version":"1.0.1","description":"Open a file for random access read / write and create the file if it doesn't exist","main":"index.js","dependencies":{},"devDependencies":{"standard":"^5.4.1","tape":"^4.4.0"},"scripts":{"test":"tape test.js && standard"},"repository":{"type":"git","url":"https://github.com/mafintosh/random-access-open.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/random-access-open/issues"},"homepage":"https://github.com/mafintosh/random-access-open","gitHead":"e75927a5fdd2b1b855d4b6cabaff0fd00eea2a75","_id":"random-access-open@1.0.1","_shasum":"d7d67847e49f74bf8d791aae53a28aa66f7b5078","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"d7d67847e49f74bf8d791aae53a28aa66f7b5078","tarball":"https://registry.npmjs.org/random-access-open/-/random-access-open-1.0.1.tgz","integrity":"sha512-QCgmZiQes6kQoylVzcw0f3+l4PnVDXH5bc9T604mo52CaGdEIidbI7A9Sl3LM+s4UoQjTzGMrErOfSifcVF6Sg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF9U19zBgFSwAPWtSM2yeCJzL0bbIhtYBH857R3SwGYOAiATduj7P/VsVmCOU/JGQI7maavR2YxqKejsds//YSdVEg=="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}]},"1.1.0":{"name":"random-access-open","version":"1.1.0","description":"Open a file for random access read / write and create the file if it doesn't exist","main":"index.js","dependencies":{},"devDependencies":{"standard":"^5.4.1","tape":"^4.4.0"},"scripts":{"test":"tape test.js && standard"},"repository":{"type":"git","url":"https://github.com/mafintosh/random-access-open.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/random-access-open/issues"},"homepage":"https://github.com/mafintosh/random-access-open","gitHead":"3e1eca239739f7daa10e217a1b54aafb1cb85d8c","_id":"random-access-open@1.1.0","_shasum":"ee7c4b6137e25241ceacf26b72a6f71c9384f4bd","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"ee7c4b6137e25241ceacf26b72a6f71c9384f4bd","tarball":"https://registry.npmjs.org/random-access-open/-/random-access-open-1.1.0.tgz","integrity":"sha512-q3y/MrihlhYsIC6hZnQpJpMHEvUSrVwHRwXu5S/J1X/OPsHjMkJNI7oE5G4aXA/fCoFgn9oLAi9jK9vaoPaJvA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDpDjHsqKmIBnkWKopRzR6BBFieMFM1ZdHvQ7UyAc9XiwIhAMku9foWXF5b93GS9GyYaY2WjAxQuPG5mt4z0jt7/bIO"}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"ralphtheninja","email":"ralphtheninja@riseup.net"}]}},"readme":"# random-access-open\n\nOpen a file for random access read / write and create the file if it doesn't exist\n\n```\nnpm install random-access-open\n```\n\n[![build status](http://img.shields.io/travis/mafintosh/random-access-open.svg?style=flat)](http://travis-ci.org/mafintosh/random-access-open)\n\n## Usage\n\n``` js\nvar open = require('random-access-open')\nvar fs = require('fs')\n\nopen('hello.txt', function (err, fd) {\n  fs.write(fd, new Buffer('hello'), 0, 5, 0, function () {\n    fs.write(fd, new Buffer('world'), 0, 5, 0, function () {\n      fs.close(fd, function () {\n        // prints \"world\"\n        console.log(fs.readFileSync('hello.txt', 'utf-8'))\n      })\n    })\n  })\n})\n```\n\n## API\n\n#### `open(filename, callback)`\n\nOpen a file for random access read / writes. Callback is called with `(err, fd)`\n\n#### `var fd = open.sync(filename)`\n\nSame as above but sync\n\n## License\n\nMIT\n","maintainers":[{"email":"ralphtheninja@riseup.net","name":"ralphtheninja"},{"email":"mathiasbuus@gmail.com","name":"mafintosh"}],"time":{"modified":"2022-06-25T11:13:57.760Z","created":"2016-01-19T13:41:54.368Z","1.0.0":"2016-01-19T13:41:54.368Z","1.0.1":"2016-01-19T17:13:41.583Z","1.1.0":"2016-01-23T23:26:53.100Z"},"homepage":"https://github.com/mafintosh/random-access-open","repository":{"type":"git","url":"https://github.com/mafintosh/random-access-open.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"bugs":{"url":"https://github.com/mafintosh/random-access-open/issues"},"license":"MIT","readmeFilename":"README.md"}