{"_id":"browserify-fs","_rev":"346029","name":"browserify-fs","description":"fs for the browser using level-filesystem and browserify","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"mafintosh","email":""}],"time":{"modified":"2021-06-20T02:39:58.000Z","created":"2014-04-14T01:36:26.735Z","1.0.0":"2014-04-14T01:36:26.735Z"},"users":{"inflowmotion":true,"zeke":true,"danielbayley":true,"kruemelo":true,"vinnyfonseca":true},"repository":{"type":"git","url":"git://github.com/mafintosh/browserify-fs"},"versions":{"1.0.0":{"name":"browserify-fs","version":"1.0.0","description":"fs for the browser using level-filesystem and browserify","repository":{"type":"git","url":"git://github.com/mafintosh/browserify-fs"},"keywords":["browserify","fs","level","filesystem"],"dependencies":{"level-filesystem":"^1.0.1","level-js":"^2.1.3","levelup":"^0.18.2"},"bugs":{"url":"https://github.com/mafintosh/browserify-fs/issues"},"homepage":"https://github.com/mafintosh/browserify-fs","_id":"browserify-fs@1.0.0","dist":{"shasum":"f075aa8a729d4d1716d066620e386fcc1311a96f","size":922,"noattachment":false,"key":"/browserify-fs/-/browserify-fs-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/browserify-fs/download/browserify-fs-1.0.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"mafintosh","email":""}],"directories":{},"publish_time":1397439386735,"_cnpm_publish_time":1397439386735,"_hasShrinkwrap":false}},"readme":"# browserify-fs\n\n[fs](http://nodejs.org/api/fs.html) for the browser using [level-filesystem](https://github.com/mafintosh/level-filesystem) and [browserify](https://github.com/substack/node-browserify)\n\n\tnpm install browserify-fs\n\n## Usage\n\nTo use simply require it and use it as you would fs\n\n``` js\nvar fs = require('browserify-fs');\n\nfs.mkdir('/home', function() {\n\tfs.writeFile('/home/hello-world.txt', 'Hello world!\\n', function() {\n\t\tfs.readFile('/home/hello-world.txt', 'utf-8', function(err, data) {\n\t\t\tconsole.log(data);\n\t\t});\n\t});\n});\n```\n\nYou can also make browserify replace `require('fs')` with browserify-fs using\n\n\tbrowserify -r fs:browserify-fs\n\nUsing the replacement you browserify modules like [tar-fs](https://github.com/mafintosh/tar-fs) and [mkdirp](https://github.com/substack/node-mkdirp)!\n\nCheckout [level-filesystem](https://github.com/mafintosh/level-filesystem) to see which browsers are supported\n\n## License\n\nMIT","_attachments":{},"homepage":"https://github.com/mafintosh/browserify-fs","bugs":{"url":"https://github.com/mafintosh/browserify-fs/issues"}}