在 Node 中如何读取大文件的内容
Issue 欢迎在 Gtihub Issue 中回答此问题: Issue 699 (opens in a new tab)
Author 回答者: shfshanyue (opens in a new tab)
import { createReadStream } from "fs";
const stream = createReadStream("bigfile.json");
Issue 欢迎在 Gtihub Issue 中回答此问题: Issue 699 (opens in a new tab)
Author 回答者: shfshanyue (opens in a new tab)
import { createReadStream } from "fs";
const stream = createReadStream("bigfile.json");