const lib = require('./library')
Exporting Module Example : library.js
Importing Module Example
Area of the rectangle is 50 square unit Perimeter of the rectangle is 30 unit
Note: To run the script first make both files in the same folder and then run script.js using NodeJs interpreter in terminal.