ElleTry/Catch in JavaScriptYou put your code in the try block, and immediately if there is an error, JavaScript gives the catch statement control and it just does…May 22, 2022May 22, 2022
ElleBuffer and Stream -krYou can use buffer and stream to read file or write file.May 22, 2022May 22, 2022
ElleSync and async fsWhen we use regular fs.readFile(), fs.writeFile it will not garantee the order but if we use fs.readFileSync it will slow down the process:May 22, 2022May 22, 2022
ElleFile systemreadFile의 결과물은 버퍼(Buffer)라는 형식으로 제공됩니다. 지금은 단순히 버퍼를 메모리의 데이터라고 생각하면 됩니다. 버퍼는 사람이 읽을 수 있는 형식이 아니므로 toString을 사용해 문자열로 변환했습니다.May 19, 2022May 19, 2022
Ellechild_process, js노드에서 다른 프로그램을 실행하고 싶거나 명령어를 수행하고 싶을 때 사용하는 모듈입니다. 이 모듈을 통해 다른 언어의 코드(예를 들면, 파이썬)를 실행하고 결괏값을 받을 수 있습니다. 이름이 child_process(자식 프로세스)인 이유는 현재…May 19, 2022May 19, 2022