New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

util-promisifyall

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

util-promisifyall - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

2

package.json
{
"name": "util-promisifyall",
"version": "1.0.5",
"version": "1.0.6",
"description": "promisifyAll with node's native promisify function",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -13,7 +13,7 @@ # util-promisifyAll

### Example Usage
This library wraps a any callback-based library and attempts to promisify
any function available on the module's export or its prototype.
This library wraps any traditional callback-based library and attempts
to promisify any function exported by the module or its prototype.
It creates and exposes a "promisified" version of each function, which can
then be invoked by appending `Async` to the old function name, such as:
It does so by creating and exposing a "promisified" version of each function,
which can then be invoked by appending `Async` to the old function name, such as:

@@ -26,4 +26,5 @@ ```

try {
const res = fs.readdirAsync(dir);
const res = await fs.readdirAsync(dir);
console.log(res);
return res;
} catch (error) {

@@ -30,0 +31,0 @@ throw error;

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc