internal-binding
v0.2.0
Published
Node.js interanl bindings, accessible from user land
Downloads
7
Readme
internal-binding
Node.js internal bindings, accessible from user land.
Installation
npm install internal-binding
Usage
const {
DiffieHellman,
DiffieHellmanGroup,
ECDH,
Hash,
Hmac,
Sign,
Verify,
CryptoConstants,
} = require('internal-binding').Crypto;
const { WriteWrap } = require('internal-binding').Stream;
const {
Pipe,
PipeConnectWrap,
PipeConstants,
} = require('internal-binding').Pipe;
// Some wraps requires asynchronous context!
(async () => {
const {
TCP,
TCPConnectWrap,
TCPConstants,
} = await require('internal-binding').Tcp;
const {
AsyncWrap,
AsyncProviders,
} = await require('internal-binding').Async;
})();