Node.js API compatibility - Module
This documentation examines the usage and compatibility of the Node.js Module System, which includes CommonJS and ES Modules, within the Azion Runtime. The module system is a core aspect of Node.js, allowing developers to organize code into reusable files and libraries.
The module API in Node.js is a built-in module that provides functionalities for working with JavaScript modules. It’s essential for managing the modular structure of Node.js applications, allowing developers to organize code into reusable components. This module is available in the Azion Runtime through Node.js compatibility, where it’s typically used to inspect the module system, such as listing the built-in modules available to a function.
The example below shows how to use the module module in a function: