Closed vitalets closed 7 years ago
ping @evanshortiss upd: moved to own implementation of filesystem in browser https://github.com/vitalets/bro-fs
@vitalets will publish shortly, thanks!
@vitalets just noticed your fork comment. You can accomplish your module (Promise wrapper) by doing this if happy to use Bluebird promises or pify
module. Not sure if you tried these 😄
var Promise = require('bluebird');
var fs = Promise.promisifyAll(require('html5-fs'))\
fs.readFile('./blah.txt')
.then((text) => print(text));
// etc.
Let me know if you would like to be maintainer on this repo since I can be slow to respond sometimes.
hi @evanshortiss!
yes bluebird's promisifyAll
is a solution. I used it for some time, but then decided to write own module on pure promises. Anyway thanks for pointing a direction!
from console:
@evanshortiss