Package Exports
- react-native-level-fs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-native-level-fs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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