In this post we will be discussing about loading JSON files directly using require() rather than using file system in Node.js. In Node.js you can use File System module for file I/O operations which is provided by simple wrappers around standard POSIX functions. How File System in Node.js Works. A package.json file can be created by using the package manager. So it is as simple as typing npm init in the terminal.Create a Node.js webserver.Your name. Comment . More information about text formats. Chapter 4.