universalify
Make a callback- or promise-based function support both promises and callbacks.
$
npm install universalifyOfficial docs outline
Extra Credit builds an outline of universalify's docs the first time your work uses it. Until then, start at the official documentation.
More in npm packages
All 9,484-
has-tostringtag Determine if the JS environment has `Symbol.toStringTag` support. Supports spec, or shams.
-
npm-run-path Get your PATH prepended with locally installed binaries
-
media-typer Simple RFC 6838 media type parser and formatter
-
base64-js Base64 encoding/decoding in pure JS
-
uri-js An RFC 3986/3987 compliant, scheme extendable URI/IRI parsing/validating/resolving library for JavaScript.
-
lightningcss-linux-x64-gnu A CSS parser, transformer, and minifier written in Rust
-
eventemitter3 EventEmitter3 focuses on performance while maintaining a Node.js AND browser compatible interface.
-
to-regex-range Pass two numbers, get a regex-compatible source string for matching ranges. Validated against more than 2.78 million test assertions.
-
fast-uri Dependency free RFC 3986 URI toolbox
-
file-entry-cache A lightweight cache for file metadata, ideal for processes that work on a specific set of files and only need to reprocess files that have c
-
side-channel-weakmap Store information about any JS value in a side channel. Uses WeakMap if available.
-
side-channel-map Store information about any JS value in a side channel, using a Map