The built-in fs module reads and writes files and directories. It offers three API styles — promises (modern, preferred), callbacks (original async), and sync (blocking) — so you can pick the right one for the situation.
The promise API (recommended)
{ readFile, writeFile, mkdir, readdir } ;
() {
data = (, );
(, );
(, { : });
files = ();
}
