Package-level declarations
Types
Properties
A list of the names of all modules provided by Node.js. Can be used to verify if a module is maintained by a third party or not.
Functions
Enable module compile cache in the current Node.js instance.
path is the resolved path for the file for which a corresponding source map should be fetched.
Flush the module compile cache accumulated from modules already loaded in the current Node.js instance to disk. This returns after all the flushing file system operations come to an end, no matter they succeed or not. If there are any errors, this will fail silently, since compile cache misses should not interfere with the actual operation of the application.
This method returns whether the Source Map v3 support for stack traces is enabled.
Register a module that exports hooks that customize Node.js module resolution and loading behavior. See Customization hooks.
Register hooks that customize Node.js module resolution and loading behavior.
This function enables or disables the Source Map v3 support for stack traces.
module.stripTypeScriptTypes() removes type annotations from TypeScript code. It can be used to strip type annotations from TypeScript code before running it with vm.runInContext() or vm.compileFunction(). By default, it will throw an error if the code contains TypeScript features that require transformation such as Enums, see type-stripping for more information. When mode is 'transform', it also transforms TypeScript features to JavaScript, see transform TypeScript features for more information. When mode is 'strip', source maps are not generated, because locations are preserved. If sourceMap is provided, when mode is 'strip', an error will be thrown.
The module.syncBuiltinESMExports() method updates all the live bindings for builtin ES Modules to match the properties of the CommonJS exports. It does not add or remove exported names from the ES Modules.