{
  "name": "random-access-file",
  "version": "0.3.1",
  "repository": {
    "type": "git",
    "url": "git://github.com/mafintosh/random-access-file"
  },
  "license": "MIT",
  "description": "Continuous reading or writing to a file using random offsets and lengths",
  "keywords": [
    "file",
    "random",
    "access",
    "fs"
  ],
  "author": {
    "name": "Mathias Buus Madsen",
    "email": "mathiasbuus@gmail.com"
  },
  "scripts": {
    "test": "node ./tests"
  },
  "dependencies": {
    "thunky": "~0.1.0"
  },
  "readme": "# random-access-file\n\nContinuous reading or writing to a file using random offsets and lengths\n\n\tnpm install random-access-file\n\n## Why?\n\nIf you are receiving a file in multiple pieces in a distributed system it can be useful to write\nthese pieces to disk one by one in various places throughout the file without having to open and\nclose a file descriptor all the time.\n\nrandom-access-file allows you to do just this.\n\n## It is easy to use\n\n``` js\nvar randomAccessFile = require('random-access-file');\n\n// an optional file size can be given as 2nd param to randomAccessFile\nvar file = randomAccessFile('my-file.txt');\n\nfile.write(10, new Buffer('hello'), function(err) {\n    // write a buffer to offset 10\n    file.read(10, 5, function(err, buffer) {\n        console.log(buffer); // read 5 bytes from offset 10\n        file.close(function() {\n        \tconsole.log('file is closed');\n        });\n    });\n});\n```\n\nfile will use an open file descriptor. When you are done with the file you should call file.close().\n\n## License\n\nMIT",
  "readmeFilename": "README.md",
  "bugs": {
    "url": "https://github.com/mafintosh/random-access-file/issues"
  },
  "homepage": "https://github.com/mafintosh/random-access-file",
  "_id": "random-access-file@0.3.1",
  "dist": {
    "shasum": "a6ee296e9c57794a1ca9ea1424a9c0bb64940d3e"
  },
  "_resolved": "https://registry.npmjs.org/random-access-file/-/random-access-file-0.3.1.tgz",
  "_from": "random-access-file@^0.3.1"
}
