fs for the browser using level-filesystem and browserify
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 18 commits ahead, 3 commits behind mafintosh:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore first commit Apr 14, 2014
README.md update readme May 18, 2015
example.js edit package.json - add keywords, react-native in peerDependencies May 18, 2015
index.js adapt for react-native May 18, 2015
package.json 3.0.1 Apr 20, 2018

README.md

react-native-level-fs

fs in react-native using level-filesystem and asyncstorage-down

npm install react-native-level-fs

Usage

To use simply require it and use it as you would fs

(package.json)

{
    ...
    "browser": {
       "fs": "react-native-level-fs" 
    }
    ...
}
var fs = require('fs');

fs.mkdir('/home', function() {
	fs.writeFile('/home/hello-world.txt', 'Hello world!\n', function() {
		fs.readFile('/home/hello-world.txt', 'utf-8', function(err, data) {
			console.log(data);
		});
	});
});

License

MIT