fs.readFile(path,[options],callback)
참고 링크(Node.js) https://nodejs.org/dist/latest-v16.x/docs/api/fs.html#fsreadfilepath-options-callback File system | Node.js v16.19.0 Documentation nodejs.org 1. 설명 비동기적으로 파일의 전체 내용을 읽는다. Asynchronously reads the entire contents of a file. fs.readFile()은 전체 파일을 버퍼링한다. 메모리 cost를 최소화하려면 가능한 fs.createReadStream()으로 스트리밍 하는 것을 선호한다. The fs.readFile() function buffers the entire file. To minimize memor..
카테고리 없음
2023. 1. 28. 20:29