Promisify with native promises
- Actually maintained
- Uses node 8's util.promisify when running on node 8 to promisify functions
npm install tsubakiconst { promisifyAll } = require('tsubaki');
const fs = promisifyAll(require('fs'));
fs.writeFileAsync('test.txt', '123456', 'utf-8')
.then(() => fs.readFileAsync('test.txt', 'utf-8'))
.then((content) => console.log(content));- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D
Tsubaki © iCrawl, Released under the MIT License.
Authored and maintained by iCrawl.
GitHub @iCrawl · Twitter @iCrawlToGo