Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
util.promisify
Advanced tools
Changelog
v1.1.0 - 2021-01-06
a09e2f5
5162b64
4b5a39e
07693ae
util.promisify.custom
8f8631b
eslint
, @ljharb/eslint-config
, aud
, auto-changelog
83e7267
e2a92ae
es-shim-api
to postlint
7b93efa
call-bind
instead of es-abstract
e68f500
pull_request_target
event 7da936c
aud
, auto-changelog
88465d4
8a13dc5
object.getownpropertydescriptors
899d30b
es-abstract
552d18b
auto-changelog
dd61917
es-abstract
40a839a
@ljharb/eslint-config
07c3b39
Readme
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
.
FAQs
Polyfill/shim for util.promisify in node versions < v8
The npm package util.promisify receives a total of 10,188,644 weekly downloads. As such, util.promisify popularity was classified as popular.
We found that util.promisify demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.