const fs = require('fs'); const data = fs.readFileSync('/file.md'); // blocks here until file is read
var fs = require("fs"); // Synchronous read var data = fs.readFileSync('input.txt'); console.log("Synchronous read: " + data.toString());