Azion Edge Runtime and Node.js API compatibility
Node built-in
Section titled Node built-inThe compatibility between Azion Edge Runtime and Node.js is an ongoing task, but a set of Node Runtime APIs are listed and compatible with Azion Edge Runtime. The following list of APIs can be imported inside edge functions with the standard import syntax:
API | Support Level | Code sample | Comments |
---|---|---|---|
async_hooks | π‘ Partially supported | Access code sample | Only AsyncLocalStorage and AsyncResource are implemented |
Node polyfills
Section titled Node polyfillsA polyfill is a code snippet, often used in JavaScript, that brings new features to environments lacking these capabilities. Polyfills are used during build time at Azion and can be configured through the vulcan.config.js file.
Hereβs a list of Node APIs supported through polyfills:
API | Support Level | Code sample |
---|---|---|
buffer | π‘ Partially supported | Access code sample |
fs | π‘ Partially supported | Access code sample |
crypto | π‘ Partially supported | - |
dns | π‘ Partially supported | - |
http2 | π‘ Partially supported | - |
module | π‘ Partially supported | - |
navigator | π‘ Partially supported | - |
path_dirname | π‘ Partially supported | - |
performance | π‘ Partially supported | - |
process | π‘ Partially supported | - |
accepts | π‘ Partially supported | - |
child_process | π‘ Partially supported | - |
cluster | π‘ Partially supported | - |
console | π‘ Partially supported | - |
dgram | π‘ Partially supported | - |
events | π‘ Partially supported | - |
http | π‘ Partially supported | - |
https | π‘ Partially supported | - |
inspector | π‘ Partially supported | - |
net | π‘ Partially supported | - |
os | π‘ Partially supported | - |
path | π‘ Partially supported | - |
perf_hooks | π‘ Partially supported | - |
querystring | π‘ Partially supported | - |
readline | π‘ Partially supported | - |
repl | π‘ Partially supported | - |
stream | π‘ Partially supported | - |
_stream_passthrough | π‘ Partially supported | - |
_stream_readable | π‘ Partially supported | - |
_stream_transform | π‘ Partially supported | - |
_stream_writable | π‘ Partially supported | - |
string_decoder | π‘ Partially supported | - |
sys | π‘ Partially supported | - |
timers | π‘ Partially supported | - |
tls | π‘ Partially supported | - |
tty | π‘ Partially supported | - |
url | π‘ Partially supported | - |
util | π‘ Partially supported | - |
vm | π‘ Partially supported | - |
zlib | π‘ Partially supported | - |
For additional compatibility information:
go to supported Web APIsgo to supported Web Frameworks