Join egghead, unlock knowledge.

Want more egghead?

This lesson is for members. Join us? Get access to all 3,000+ tutorials + a community with expert developers around the world.

Unlock This Lesson
1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Create a Simple Node.js Module

    javascriptJavaScript

    In this lesson, we introduce modules: what they are and how to use them. You'll learn: how to create a simple module and export the functions to be accessed elsewhere how to include code from your module in files within your application the three rules node uses to find the modules you require the hierarchy node uses to determine which modules take precedence which file extensions node can automatically detect when requiring modules