Reading files

The function fs.readFileSync reads a file synchronously, meaning the Node.js process waits for the operation to complete before doing anything else.

Loading TypeScript...

Was this page helpful?