Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tradle/react-native-level-fs
fs for the browser using level-filesystem and browserify
https://github.com/tradle/react-native-level-fs
Last synced: 6 days ago
JSON representation
fs for the browser using level-filesystem and browserify
- Host: GitHub
- URL: https://github.com/tradle/react-native-level-fs
- Owner: tradle
- License: mit
- Fork: true (mafintosh/browserify-fs)
- Created: 2015-01-12T15:56:08.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2019-10-09T21:33:03.000Z (about 5 years ago)
- Last Synced: 2024-11-11T15:33:32.640Z (about 1 month ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 26
- Watchers: 8
- Forks: 17
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-react-native - react-native-level-fs ★20 - fs for react-native using level-filesystem and asyncstorage-down (Components / Storage)
- awesome-react-native - react-native-level-fs ★20 - fs for react-native using level-filesystem and asyncstorage-down (Components / Storage)
- awesome-react-native - react-native-level-fs ★20 - fs for react-native using level-filesystem and asyncstorage-down (Components / Storage)
- awesome-react-native - react-native-level-fs ★20 - fs for react-native using level-filesystem and asyncstorage-down (Components / Storage)
- awesome-react-native-ui - react-native-level-fs ★12 - fs for react-native using level-filesystem and asyncstorage-down (Components / Storage)
README
# react-native-level-fs
[fs](http://nodejs.org/api/fs.html) in react-native using [level-filesystem](https://github.com/mafintosh/level-filesystem) and [asyncstorage-down](https://github.com/tradle/asyncstorage-down)
npm install react-native-level-fs
## Usage
To use simply require it and use it as you would fs
(package.json)
```json
{
...
"browser": {
"fs": "react-native-level-fs"
}
...
}
`````` js
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