[go: up one dir, main page]
More Web Proxy on the site http://driver.im/Skip to main content
On this page

Node APIs

Deno provides polyfills for a number of built-in Node.js modules and globals.

Explore built-in Node APIs

Node compatibility is an ongoing project - help us identify gaps and let us know which modules you need by opening an issue on GitHub.

Fully supported modules (20/44) Jump to heading

node:assert Jump to heading

node:buffer Jump to heading

node:child_process Jump to heading

node:console Jump to heading

node:crypto Jump to heading

Certificate: The methods are non-functional stubs.

generateKeyPair: The x448 option is not supported.

generatePrime: The safe, add and rem option is not supported.

KeyObject: The following are non-functional stubs:

  • from
  • symmetricKeySize
  • equals
  • export

publicDecrypt: This symbol is a non-functional stub.

secureHeapUsed: This symbol is a non-functional stub.

setEngine: This symbol is a non-functional stub.

ECDH: The convertKey method is a non-functional sub.

Sign: The sign and verify methods are not supported with non BinaryLike input.

node:diagnostics_channel Jump to heading

node:events Jump to heading

node:fs Jump to heading

writeFile: Missing utf16le, latin1 and ucs2 encoding.

writeFileSync: Missing utf16le, latin1 and ucs2 encoding.

node:fs/promises Jump to heading

lchmod: The lchmod implementation is a not implemented.

node:module Jump to heading

Module: The register method is a non-functional stub.

node:os Jump to heading

node:path Jump to heading

node:punycode Jump to heading

node:querystring Jump to heading

node:readline Jump to heading

node:stream Jump to heading

node:string_decoder Jump to heading

node:timers Jump to heading

node:tty Jump to heading

node:url Jump to heading

Partially supported modules (17/44) Jump to heading

node:async_hooks Jump to heading

AsyncResource: The AsyncResource implementation is a non-functional stub.

executionAsyncId: The executionAsyncId implementation is a non-functional stub.

createHook: The createHook implementation is a non-functional stub.

node:dgram Jump to heading

Socket: The following methods are non-functional stubs:

  • addMembership
  • addSourceSpecificMembership
  • dropMembership
  • dropSourceSpecificMembership
  • setBroadcast
  • setMulticastInterface
  • setMulticastLoopback
  • setMulticastTtl
  • setTtl

node:dns Jump to heading

resolve: The ttl option is not supported.

resolve4: The ttl option is not supported.

resolve6: The ttl option is not supported.

resolveCname: The ttl option is not supported.

resolveCaa: The ttl option is not supported.

resolveMx: The ttl option is not supported.

resolveNaptr: The ttl option is not supported.

resolveNs: The ttl option is not supported.

resolvePtr: The ttl option is not supported.

resolveSoa: The ttl option is not supported.

resolveSrv: The ttl option is not supported.

resolveTxt: The ttl option is not supported.

resolveAny: The ttl option is not supported.

node:http Jump to heading

RequestOptions: Option createConnection is not supported.

ClientRequestArgs: Option createConnection is not supported.

ClientRequest: Constructor option createConnection is not supported.

request: Constructor option createConnection is not supported.

get: Constructor option createConnection is not supported.

node:http2 Jump to heading

Http2Session: The following methods are non-functional stubs:

  • setLocalWindowSize
  • ping
  • localSettings
  • remoteSettings
  • settings
  • ref
  • unref

ServerHttp2Session: All methods are non-functional stubs.

Http2Stream: The following methods are non-functional stubs:

  • aborted
  • bufferSize
  • endAfterHeaders
  • id
  • pending
  • priority
  • rstCode
  • sentHeaders
  • sentInfoHeaders
  • sentTrailers
  • state

ClientHttp2Stream: All methods are non-functional stubs.

getDefaultSettings: This function is a non-functional stub.

getPackedSettings: This function is a non-functional stub.

getUnpackedSettings: This function is a non-functional stub.

node:https Jump to heading

Server: The cert and key options do not support an array input.

node:inspector Jump to heading

console is supported. Other APIs are non-functional stubs.

node:net Jump to heading

Socket: The fd option is not supported.

node:perf_hooks Jump to heading

performance: The eventLoopUtilization method is a non-functional stub. The timerify method is not implemented.

monitorEventLoopDelay: This symbol is not implemented.

node:process Jump to heading

The multipleResolves and worker events are not supported.

node:test Jump to heading

Currently only test API is supported.

node:tls Jump to heading

createSecurePair: This symbol is currently not supported.

node:util Jump to heading

transferableAbortSignal: This symbol is currently not supported.

transferableAbortController: This symbol is currently not supported.

MIMEParams: This symbol is currently not supported.

MIMEType: This symbol is currently not supported.

getSystemErrorMap: This symbol is currently not supported.

node:v8 Jump to heading

cachedDataVersionTag and getHeapStatistics, serialize and deserialize are supported. setFlagsFromStrings is a noop. Other APIs are not supported and will throw and error.

setFlagsFromStrings: This function is a noop.

node:vm Jump to heading

measureMemory: This is a non-functional stub.

compile: The importModuleDynamically parameter is not supported.

createContext: The importModuleDynamically parameter is not supported.

Script: The importModuleDynamically parameter is not supported. The runInContext method does not support break on SIGINT.

node:worker_threads Jump to heading

parentPort: The emit method is not supported. The removeAllListeners method is not supported.

markAsUntransferable: This symbol is not supported.

moveMessagePortToContext: This symbol is not supported.

receiveMessageOnPort: This symbol is not supported.

Worker: The getHeapSnapshot method is not supported.

node:zlib Jump to heading

Options: This class is not supported.

BrotliOptions: This class is not supported.

BrotliCompress: This class is not supported.

BrotliDecompress: This class is not supported.

ZlibBase: This class is not supported.

Unsupported modules (7/44) Jump to heading

node:cluster Jump to heading

All exports are non-functional stubs.

All symbols: This symbol is a non-functional stub.

node:domain Jump to heading

All exports are non-functional stubs. This is a deprecated Node module.

All symbols: This symbol is a non-functional stub.

node:repl Jump to heading

All symbols are not supported.

All symbols: This symbol is not supported.

node:sea Jump to heading

All symbols are not supported.

All symbols: This symbol is not supported.

node:sqlite Jump to heading

This module is not implemented.

All symbols: This module is not implemented.

node:trace_events Jump to heading

All exports are non-functional stubs.

All symbols: This symbol is a non-functional stub.

node:wasi Jump to heading

All exports are non-functional stubs.

All symbols: This symbol is a non-functional stub.

Globals Jump to heading

This is the list of Node globals that Deno supports. These globals are only available in the npm package scope. In your own code you can use them by importing them from the relevant node: module.

Global name Status
AbortController
AbortSignal
Blob
Buffer
ByteLengthQueuingStrategy
__dirname ⚠️ Info
__filename ⚠️ Info
atob
BroadcastChannel
btoa
clearImmediate
clearInterval
clearTimeout
CompressionStream
console
CountQueuingStrategy
Crypto
CryptoKey
CustomEvent
CustomEvent
DecompressionStream
Event
EventTarget
exports
fetch
File
FormData
global
Headers
MessageChannel
MessageEvent
MessagePort
module
PerformanceEntry
PerformanceMark
PerformanceMeasure
PerformanceObserver
PerformanceObserverEntryList
PerformanceResourceTiming
performance
process
queueMicrotask
ReadableByteStreamController
ReadableStream
ReadableStreamBYOBReader
ReadableStreamBYOBRequest
ReadableStreamDefaultController
ReadableStreamDefaultReader
require
Response
Request
setImmediate
setInterval
setTimeout
structuredClone
structuredClone
SubtleCrypto
DOMException
TextDecoder
TextDecoderStream
TextEncoder
TextEncoderStream
TransformStream
TransformStreamDefaultController
URL
URLSearchParams
URLSearchParams
WebAssembly
WritableStream
WritableStreamDefaultController
WritableStreamDefaultWriter

Did you find what you needed?

Privacy policy