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.0.1 - 2020-01-16
#3
f1b5e43
node
v10.0
, v9.11
, v8.11
, v6.14
, 4.9
; use nvm install-latest-npm
; pin included builds to LTS e89390f
auto-changelog
fe8e751
node
v11.0
, v10.12
, v8.12
e09b894
callBound
helper from es-abstract
for robustness baa0cf6
24912f4
38b1ee5
__proto__
instead of ES6’s Object.setPrototypeOf
02ec7e2
076b8b5
eslint
, @ljharb/eslint-config
, safe-publish-latest
4cedaa9
ddb4556
eslint
, @ljharb/eslint-config
, safe-publish-latest
95362c0
@es-shims/api
, @ljharb/eslint-config
, eslint
fd79a58
eslint
, @ljharb/eslint-config
2cf792b
032ff5c
c2f8418
13a242f
node
v10.1
8244578
funding
field e1645ca
auto
entry point 2c48047
has-symbols
package to ensure we support Symbol shams too. 75135c8
es-abstract
32aa5cc
eslint
c3043e6
object.getownpropertydescriptors
521ed25
has-symbol
16d91ec
define-properties
532915e
npm
v5+ breaks on node < v4 0647c63
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,194,485 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.