react-native-level-fs

3.0.1 • Public • Published

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

Package Sidebar

Install

npm i react-native-level-fs

Weekly Downloads

10,887

Version

3.0.1

License

none

Unpacked Size

1.74 kB

Total Files

5

Last publish

Collaborators

  • spwilko
  • genevayngrib
  • pgmemk
  • tenaciousmv