mirror of
https://github.com/denoland/deno.git
synced 2024-10-30 09:08:00 -04: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);
|