Articles → NODE.JS → Require Method In Node.JsRequire Method In Node.JsIn this article, we will discuss the "require" method in node.js.Purpose "require" method loads the node.js module.Example const SHA256 = require('crypto-js/sha256');The above code will load the module crypto-js\sha256. If the module exists on the given path, then the object will be returned.Posted By - Karan Gupta Posted On - Tuesday, May 26, 2020 Query/Feedback Your Email Id** Subject* Query/Feedback Characters remaining 250**
const SHA256 = require('crypto-js/sha256');
Query/Feedback