What is the correspondence between a Node.js module and a script file?​

By Ava

What is the correspondence between a Node.js module and a script file?​

About the author
Ava

2 thoughts on “What is the correspondence between a Node.js module and a script file?​”

  1. Node supports a simple module loading system: there is a one-to-one correspondence between the file and module. To include a module within a Node application, use the require statement, passing in a string with the identifier for the module: var http = require (‘http’);

    Reply

Leave a Reply to Isabelle Cancel reply