mirror of
https://github.com/denoland/deno.git
synced 2024-11-14 16:33:45 -05:00
37a24c7bdf
Adds support for "node:" prefix for Node built-ins in "--compat" mode. As per https://nodejs.org/api/esm.html#esm_node_imports
3 lines
114 B
JavaScript
3 lines
114 B
JavaScript
import fs from "node:fs/promises";
|
|
const data = await fs.readFile("compat/test.txt", "utf-8");
|
|
console.log(data);
|