tsubaki
TypeScript icon, indicating that this package has built-in type declarations

1.3.14 • Public • Published

Tsubaki

Promisify with native promises

NPM version NPM downloads

Features

  • Actually maintained
  • Uses node 8's util.promisify when running on node 8 to promisify functions

Install

npm install tsubaki

Usage

const { 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));

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

Tsubaki © iCrawl, Released under the MIT License.
Authored and maintained by iCrawl.

GitHub @iCrawl · Twitter @iCrawlToGo

Package Sidebar

Install

npm i tsubaki

Weekly Downloads

2,031

Version

1.3.14

License

MIT

Unpacked Size

13.7 kB

Total Files

11

Last publish

Collaborators

  • crawl
  • vzwgrey