node-builtin-specifier
Recommended
Enforces the use of the node:
specifier for Node built-in modules.
Enforces the use of the node:
specifier for Node built-in modules.
Deno requires Node built-in modules to be imported with the node:
specifier.
Invalid:
import * as path from "path";
import * as fs from "fs";
import * as fsPromises from "fs/promises";
Valid:
import * as path from "node:path";
import * as fs from "node:fs";
import * as fsPromises from "node:fs/promises";