Socket
Socket
Sign inDemoInstall

tsubaki

Package Overview
Dependencies
0
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    tsubaki

Promisify with native promises.


Version published
Maintainers
2
Install size
13.3 kB
Created

Changelog

Source

1.3.14 (2021-10-25)

Bug Fixes

  • import/require for js/mjs (594b2c1)

Readme

Source

Tsubaki

Promisify with native promises

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

Keywords

FAQs

Last updated on 25 Oct 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc