-
-
Save navanathjadhav/3eb39de9897dba84fb6b0f93baf3d608 to your computer and use it in GitHub Desktop.
Code Example for Sync function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { readFileSync } from "node:fs"; | |
/* | |
* Read file synchronously | |
* No other code will be executed until readFileSync is complete | |
*/ | |
readFileSync("<directory>"); // => <data> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment