
Product
Announcing Precomputed Reachability Analysis in Socket
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
util.promisify
Advanced tools
Polyfill for util.promisify in node versions < v8
node v8.0.0 added support for a built-in util.promisify
: https://github.com/nodejs/node/pull/12442/
This package provides the built-in util.promisify
in node v8.0.0 and later, and a replacement in other environments.
Direct
const promisify = require('util.promisify');
// Use `promisify` just like the built-in method on `util`
Shim
require('util.promisify/shim')();
// `util.promisify` is now defined
const util = require('util');
// Use `util.promisify`
Note: this package requires a native ES5 environment, and for Promise
to be globally available. It will throw upon requiring it if these are not present.
If you want to promisify a whole module, like the fs
module, you can use util.promisify-all
.
v1.1.3 - 2024-12-18
call-bind
, define-data-property
, es-errors
, es-object-atoms
, get-intrinsic
f3b4baa
fda95ae
509cfcb
@es-shims/api
, @ljharb/eslint-config
, auto-changelog
, npmignore
, tape
3712bb5
call-bind
, has-proto
, has-symbols
, object.getownpropertydescriptors
, safe-array-concat
4d1441e
define-properties
, object.getownpropertydescriptors
, safe-array-concat
47a969e
call-bound
directly 48dba6c
aud
, tape
7aa0c21
@es-shims/api
, @ljharb/eslint-config
0817cfd
engines.node
9d08241
aud
with npm audit
cf287ac
fb9e435
FAQs
Polyfill/shim for util.promisify in node versions < v8
The npm package util.promisify receives a total of 7,020,213 weekly downloads. As such, util.promisify popularity was classified as popular.
We found that util.promisify demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.