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.2 - 2023-04-20
--disable-proto=throw
#26
2736cb6
npmignore
to autogenerate an npmignore file 0eb5abb
e610642
727c30c
eslint
, @ljharb/eslint-config
, @es-shims/api
, aud
, auto-changelog
, safe-publish-latest
, tape
ecc9281
eslint
, @ljharb/eslint-config
, aud
, auto-changelog
, tape
91c385d
c62f4bf
has-proto
e423ed0
@es-shims/api
, ljharb/eslint-config
, aud
, tape
62717c1
safe-array-concat
d068529
define-properties
, has-symbols
, object.getownpropertydescriptors
bd8a7be
call-bind
, has-symbols
, object.getownpropertydescriptors
7473409
define-properties
, object.getownpropertydescriptors
4f244be
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.