{"_id":"level-filesystem","_rev":"346081","name":"level-filesystem","description":"Full implementation of the fs module on top of leveldb","dist-tags":{"latest":"1.2.0"},"maintainers":[{"name":"aredridel","email":"aredridel@nbtsc.org"}],"time":{"modified":"2021-06-20T02:40:11.000Z","created":"2014-03-29T19:24:19.781Z","1.2.0":"2015-12-01T13:00:05.332Z","1.1.0":"2014-10-11T06:51:54.882Z","1.0.2":"2014-10-10T08:20:35.177Z","1.0.1":"2014-04-14T01:26:24.296Z","1.0.0":"2014-04-14T00:27:06.247Z","0.0.4":"2014-04-13T23:22:59.991Z","0.0.3":"2014-04-12T19:38:32.083Z","0.0.2":"2014-03-29T19:39:01.193Z","0.0.1":"2014-03-29T19:30:19.651Z","0.0.0":"2014-03-29T19:24:19.781Z"},"users":{"maxogden":true,"moimikey":true,"moinism":true,"grncdr":true},"repository":{"type":"git","url":"git://github.com:mafintosh/level-filesystem.git"},"versions":{"1.2.0":{"name":"level-filesystem","version":"1.2.0","description":"Full implementation of the fs module on top of leveldb","repository":{"type":"git","url":"git://github.com:mafintosh/level-filesystem.git"},"dependencies":{"octal":"^1.0.0","once":"^1.3.0","errno":"^0.1.1","concat-stream":"^1.4.4","level-sublevel":"^5.2.0","level-blobs":"^0.1.7","fwd-stream":"^1.0.4","xtend":"^2.2.0","level-peek":"^1.0.6"},"devDependencies":{"memdb":"^0.1.0","tape":"^2.12.0","memdown":"git://github.com/maxogden/memdown","levelup":"^0.18.2","browserify":"^12.0.1"},"keywords":["leveldb","level","filesystem","fs","file","replacement"],"scripts":{"test":"tape test/*.js"},"testling":{"files":"test/*.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"213a7c1bf71a91a9f88447339a12b6dd1f92d85d","bugs":{"url":"https://github.com/mafintosh/level-filesystem/issues"},"homepage":"https://github.com/mafintosh/level-filesystem","_id":"level-filesystem@1.2.0","_shasum":"a00aca9919c4a4dfafdca6a8108d225aadff63b3","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.2","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"a00aca9919c4a4dfafdca6a8108d225aadff63b3","size":10551,"noattachment":false,"key":"/level-filesystem/-/level-filesystem-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/level-filesystem/download/level-filesystem-1.2.0.tgz"},"maintainers":[{"name":"aredridel","email":"aredridel@nbtsc.org"}],"directories":{},"publish_time":1448974805332,"_cnpm_publish_time":1448974805332,"_hasShrinkwrap":false},"1.1.0":{"name":"level-filesystem","version":"1.1.0","description":"Full implementation of the fs module on top of leveldb","repository":{"type":"git","url":"git://github.com:mafintosh/level-filesystem.git"},"dependencies":{"once":"^1.3.0","errno":"^0.1.1","concat-stream":"^1.4.4","level-sublevel":"^5.2.0","level-blobs":"^0.1.7","fwd-stream":"^1.0.4","xtend":"^2.2.0","level-peek":"^1.0.6"},"devDependencies":{"memdb":"^0.1.0","tape":"^2.12.0","memdown":"git://github.com/maxogden/memdown","levelup":"^0.18.2","browserify":"3.32.1"},"keywords":["leveldb","level","filesystem","fs","file","replacement"],"scripts":{"test":"tape test/*.js"},"testling":{"files":"test/*.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"5f5f7c3551580eecd17766e0e65a954032831bac","bugs":{"url":"https://github.com/mafintosh/level-filesystem/issues"},"homepage":"https://github.com/mafintosh/level-filesystem","_id":"level-filesystem@1.1.0","_shasum":"dd9ae3f0d0b0a28cfea52c420ea53de3e4d8ac00","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"aredridel","email":"aredridel@nbtsc.org"}],"dist":{"shasum":"dd9ae3f0d0b0a28cfea52c420ea53de3e4d8ac00","size":10679,"noattachment":false,"key":"/level-filesystem/-/level-filesystem-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/level-filesystem/download/level-filesystem-1.1.0.tgz"},"directories":{},"publish_time":1413010314882,"_cnpm_publish_time":1413010314882,"_hasShrinkwrap":false},"1.0.2":{"name":"level-filesystem","version":"1.0.2","description":"Full implementation of the fs module on top of leveldb","repository":{"type":"git","url":"git://github.com:mafintosh/level-filesystem.git"},"dependencies":{"once":"^1.3.0","errno":"^0.1.1","concat-stream":"^1.4.4","level-sublevel":"^5.2.0","level-blobs":"^0.1.7","fwd-stream":"^1.0.4","xtend":"^2.2.0","level-peek":"^1.0.6"},"devDependencies":{"memdb":"^0.1.0","tape":"^2.12.0","memdown":"git://github.com/maxogden/memdown","levelup":"^0.18.2","browserify":"3.32.1"},"keywords":["leveldb","level","filesystem","fs","file","replacement"],"scripts":{"test":"tape test/*.js"},"testling":{"files":"test/*.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"c9f5c98c2322cbf3965aa26796e66f887b230796","bugs":{"url":"https://github.com/mafintosh/level-filesystem/issues"},"homepage":"https://github.com/mafintosh/level-filesystem","_id":"level-filesystem@1.0.2","_shasum":"8c1eb9042e405a0dfcdc389704018ec984d12c81","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"aredridel","email":"aredridel@nbtsc.org"}],"dist":{"shasum":"8c1eb9042e405a0dfcdc389704018ec984d12c81","size":10487,"noattachment":false,"key":"/level-filesystem/-/level-filesystem-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/level-filesystem/download/level-filesystem-1.0.2.tgz"},"directories":{},"publish_time":1412929235177,"_cnpm_publish_time":1412929235177,"_hasShrinkwrap":false},"1.0.1":{"name":"level-filesystem","version":"1.0.1","description":"Full implementation of the fs module on top of leveldb","repository":{"type":"git","url":"git://github.com:mafintosh/level-filesystem.git"},"dependencies":{"once":"^1.3.0","errno":"^0.1.1","concat-stream":"^1.4.4","level-sublevel":"^5.2.0","level-blobs":"^0.1.6","fwd-stream":"^1.0.4","xtend":"^2.2.0","level-peek":"^1.0.6"},"devDependencies":{"memdb":"^0.1.0","tape":"^2.12.0","memdown":"git://github.com/maxogden/memdown","levelup":"^0.18.2","browserify":"3.32.1"},"keywords":["leveldb","level","filesystem","fs","file","replacement"],"scripts":{"test":"tape test/*.js"},"testling":{"files":"test/*.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"bugs":{"url":"https://github.com/mafintosh/level-filesystem/issues"},"homepage":"https://github.com/mafintosh/level-filesystem","_id":"level-filesystem@1.0.1","dist":{"shasum":"c4bd9d1a38fc414c92a151f9649b55717d10a4b8","size":9687,"noattachment":false,"key":"/level-filesystem/-/level-filesystem-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/level-filesystem/download/level-filesystem-1.0.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"aredridel","email":"aredridel@nbtsc.org"}],"directories":{},"publish_time":1397438784296,"_cnpm_publish_time":1397438784296,"_hasShrinkwrap":false},"1.0.0":{"name":"level-filesystem","version":"1.0.0","description":"Full implementation of the fs module on top of leveldb","repository":{"type":"git","url":"git://github.com:mafintosh/level-filesystem.git"},"dependencies":{"once":"^1.3.0","errno":"^0.1.1","concat-stream":"^1.4.4","level-sublevel":"^5.2.0","level-blobs":"^0.1.6","fwd-stream":"^1.0.4","xtend":"^2.2.0","level-peek":"^1.0.6"},"devDependencies":{"memdb":"^0.1.0","tape":"^2.12.0"},"scripts":{"test":"tape test/*.js"},"testling":{"files":"test/*.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"bugs":{"url":"https://github.com/mafintosh/level-filesystem/issues"},"homepage":"https://github.com/mafintosh/level-filesystem","_id":"level-filesystem@1.0.0","dist":{"shasum":"3a3c3fd21b1523a03180c04c860086c9e4f0c6cc","size":9546,"noattachment":false,"key":"/level-filesystem/-/level-filesystem-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/level-filesystem/download/level-filesystem-1.0.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"aredridel","email":"aredridel@nbtsc.org"}],"directories":{},"publish_time":1397435226247,"_cnpm_publish_time":1397435226247,"_hasShrinkwrap":false},"0.0.4":{"name":"level-filesystem","version":"0.0.4","description":"(TO BE) A full implementation of the fs module in leveldb","repository":{"type":"git","url":"git://github.com:mafintosh/level-filesystem.git"},"dependencies":{"once":"^1.3.0","errno":"^0.1.1","concat-stream":"^1.4.4","level-sublevel":"^5.2.0","level-blobs":"^0.1.6","fwd-stream":"^1.0.4","xtend":"^2.2.0"},"devDependencies":{"memdb":"^0.1.0","tape":"^2.12.0"},"scripts":{"test":"tape test/*.js"},"testling":{"files":"test/*.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"bugs":{"url":"https://github.com/mafintosh/level-filesystem/issues"},"homepage":"https://github.com/mafintosh/level-filesystem","_id":"level-filesystem@0.0.4","dist":{"shasum":"106b90f0783d1b5a4abbcb49dd28ffebaa9795d3","size":9045,"noattachment":false,"key":"/level-filesystem/-/level-filesystem-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/level-filesystem/download/level-filesystem-0.0.4.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"aredridel","email":"aredridel@nbtsc.org"}],"directories":{},"publish_time":1397431379991,"_cnpm_publish_time":1397431379991,"_hasShrinkwrap":false},"0.0.3":{"name":"level-filesystem","version":"0.0.3","description":"(TO BE) A full implementation of the fs module in leveldb","repository":{"type":"git","url":"git://github.com:mafintosh/level-filesystem.git"},"dependencies":{"once":"^1.3.0","errno":"^0.1.1","concat-stream":"^1.4.4","level-sublevel":"^5.2.0","level-blobs":"^0.1.2","fwd-stream":"^1.0.4"},"devDependencies":{"memdb":"^0.1.0","tape":"^2.12.0"},"scripts":{"test":"tape test/*.js"},"testling":{"files":"test/*.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"bugs":{"url":"https://github.com/mafintosh/level-filesystem/issues"},"homepage":"https://github.com/mafintosh/level-filesystem","_id":"level-filesystem@0.0.3","dist":{"shasum":"cce5a3041d5a2ab5392aece1b01a1eb11297e5d4","size":8233,"noattachment":false,"key":"/level-filesystem/-/level-filesystem-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/level-filesystem/download/level-filesystem-0.0.3.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"aredridel","email":"aredridel@nbtsc.org"}],"directories":{},"publish_time":1397331512083,"_cnpm_publish_time":1397331512083,"_hasShrinkwrap":false},"0.0.2":{"name":"level-filesystem","version":"0.0.2","description":"(TO BE) A full implementation of the fs module in leveldb","repository":{"type":"git","url":"git://github.com:mafintosh/level-filesystem.git"},"dependencies":{"once":"^1.3.0","errno":"^0.1.1","concat-stream":"^1.4.4","level-sublevel":"^5.2.0","level-store":"^3.10.1"},"devDependencies":{"tap":"^0.4.8","memdb":"^0.1.0"},"scripts":{"test":"tap test/test-*.js"},"bugs":{"url":"https://github.com/mafintosh/level-filesystem/issues"},"homepage":"https://github.com/mafintosh/level-filesystem","_id":"level-filesystem@0.0.2","dist":{"shasum":"bc11a1b91efdea2059cd4b98e56a836aab3a0684","size":5043,"noattachment":false,"key":"/level-filesystem/-/level-filesystem-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/level-filesystem/download/level-filesystem-0.0.2.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"aredridel","email":"aredridel@nbtsc.org"}],"directories":{},"publish_time":1396121941193,"_cnpm_publish_time":1396121941193,"_hasShrinkwrap":false},"0.0.1":{"name":"level-filesystem","version":"0.0.1","description":"(TO BE) A full implementation of the fs module in leveldb","repository":{"type":"git","url":"git://github.com:mafintosh/level-filesystem.git"},"dependencies":{"once":"^1.3.0","errno":"^0.1.1","concat-stream":"^1.4.4","level-sublevel":"^5.2.0","level-store":"^3.10.1"},"devDependencies":{"tap":"^0.4.8","memdb":"^0.1.0"},"scripts":{"test":"tap test/test-*.js"},"bugs":{"url":"https://github.com/mafintosh/level-filesystem/issues"},"homepage":"https://github.com/mafintosh/level-filesystem","_id":"level-filesystem@0.0.1","dist":{"shasum":"30f457b31959804180d0958e74cee0e83e104f6e","size":4795,"noattachment":false,"key":"/level-filesystem/-/level-filesystem-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/level-filesystem/download/level-filesystem-0.0.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"aredridel","email":"aredridel@nbtsc.org"}],"directories":{},"publish_time":1396121419651,"_cnpm_publish_time":1396121419651,"_hasShrinkwrap":false},"0.0.0":{"name":"level-filesystem","version":"0.0.0","description":"(TO BE) A full implementation of the fs module in leveldb","repository":{"type":"git","url":"git://github.com:mafintosh/level-filesystem.git"},"dependencies":{"once":"^1.3.0","errno":"^0.1.1","concat-stream":"^1.4.4","level-sublevel":"^5.2.0","level-store":"^3.10.1"},"devDependencies":{"tap":"^0.4.8","memdb":"^0.1.0"},"scripts":{"test":"tap test/test-*.js"},"bugs":{"url":"https://github.com/mafintosh/level-filesystem/issues"},"homepage":"https://github.com/mafintosh/level-filesystem","_id":"level-filesystem@0.0.0","dist":{"shasum":"cbda2f53a8a239515f152413d3930445ce11f7c7","size":4636,"noattachment":false,"key":"/level-filesystem/-/level-filesystem-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/level-filesystem/download/level-filesystem-0.0.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"aredridel","email":"aredridel@nbtsc.org"}],"directories":{},"publish_time":1396121059781,"_cnpm_publish_time":1396121059781,"_hasShrinkwrap":false}},"readme":"# level-filesystem\n\nFull implementation of the fs module on top of leveldb (except sync ops)\n\n\tnpm install level-filesystem\n\n[![build status](http://img.shields.io/travis/mafintosh/level-filesystem.svg?style=flat)](http://travis-ci.org/mafintosh/level-filesystem)\n![dat](http://img.shields.io/badge/Development%20sponsored%20by-dat-green.svg?style=flat)\n\n\n[![browser support](https://ci.testling.com/mafintosh/level-filesystem.png)\n](https://ci.testling.com/mafintosh/level-filesystem)\n\n## Current status\n\nAll async methods in the fs module are supported and well tested (including links!)\n\n```\n✓ fs.rmdir(path, callback)\n✓ fs.mkdir(path, [mode], callback)\n✓ fs.readdir(path, callback)\n✓ fs.stat(path, callback)\n✓ fs.exists(path, callback)\n✓ fs.chmod(path, mode, callback)\n✓ fs.chown(path, uid, gid, callback)\n✓ fs.rename(oldPath, newPath, callback)\n✓ fs.realpath(path, [cache], callback)\n✓ fs.readFile(filename, [options], callback)\n✓ fs.writeFile(filename, data, [options], callback)\n✓ fs.appendFile(filename, data, [options], callback)\n✓ fs.utimes(path, atime, mtime, callback)\n✓ fs.unlink(path, callback)\n✓ fs.createReadStream(path, [options])\n✓ fs.createWriteStream(path, [options])\n✓ fs.truncate(path, len, callback)\n✓ fs.watchFile(filename, [options], listener)\n✓ fs.unwatchFile(filename, [listener])\n✓ fs.watch(filename, [options], [listener])\n✓ fs.fsync(fd, callback)\n✓ fs.write(fd, buffer, offset, length, position, callback)\n✓ fs.read(fd, buffer, offset, length, position, callback)\n✓ fs.close(fd, callback)\n✓ fs.open(path, flags, [mode], callback)\n✓ fs.futimes(fd, atime, mtime, callback)\n✓ fs.fchown(fd, uid, gid, callback)\n✓ fs.ftruncate(fd, len, callback)\n✓ fs.fchmod(fd, mode, callback)\n✓ fs.fstat(fd, callback)\n✓ fs.lchown(path, uid, gid, callback)\n✓ fs.lchmod(path, mode, callback)\n✓ fs.symlink(srcpath, dstpath, [type], callback)\n✓ fs.lstat(path, callback)\n✓ fs.readlink(path, callback)\n✓ fs.link(srcpath, dstpath, callback)\n```\n\nIf any of the methods do not behave as you would expect please add a test case or open an issue.\n\n## Usage\n\n``` js\nvar filesystem = require('level-filesystem');\nvar fs = filesystem(db); // where db is a levelup instance\n\n// use fs as you would node cores fs module\n\nfs.mkdir('/hello', function(err) {\n\tif (err) throw err;\n\tfs.writeFile('/hello/world.txt', 'world', function(err) {\n\t\tif (err) throw err;\n\t\tfs.readFile('/hello/world.txt', 'utf-8', function(err, data) {\n\t\t\tconsole.log(data);\n\t\t});\n\t});\n});\n```\n\n## Errors\n\nWhen you get an error in a callback it is similar to what you get in Node core fs.\n\n``` js\nfs.mkdir('/hello', function() {\n\tfs.mkdir('/hello', function(err) {\n\t\tconsole.log(err); // err.code is EEXIST\n\t});\n});\n\nfs.mkdir('/hello', function() {\n\tfs.readFile('/hello', function(err) {\n\t\tconsole.log(err); // err.code is EISDIR\n\t});\n});\n\n...\n```\n\n## Relation to level-fs\n\nThe goal of this module is similar to [level-fs](https://github.com/juliangruber/level-fs) and is probably gonna end up as a PR to that module.\nI decided to make this as a standalone module (for now) since adding proper directory support to [level-fs](https://github.com/juliangruber/level-fs)\nturned out to be non-trivial (more or a less a complete rewrite).\n\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/mafintosh/level-filesystem","bugs":{"url":"https://github.com/mafintosh/level-filesystem/issues"}}