O'Reilly logo

Instant Node.js Starter by Pedro Teixeira

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Top 5 features you need to know about

In the last section, we included the http module in the local application by using the require function, passing it a name of the module you wish to include. This function can be used for including and using any other module that Node.js comes with. Here is a short list of some of the core modules:

  • net: For creating TCP clients and servers
  • http: For creating and consuming HTTP services
  • fs: For accessing and manipulating files
  • dns: For using the DNS service
  • events: For creating event emitters
  • stream: For creating streams
  • os: For accessing some local operating system statistics
  • assert: For assertion testing
  • util: For miscellaneous utilities

You can, for instance, import the fs module into a local variable by ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required