Consider modules to be the same as JavaScript libraries. Built-in modules (http, fs, path, url) and custom module exports.
Node.js Backend & Express
Node.js Tutorial
Advertisement
Google AdSense Slot (LEADERBOARD)
Automated High-CTR Ad Rail • Set Publisher ID in config/adsense.php
Modules
7 min read
•
Chapter 3 of 5
Node.js Modules
Consider modules to be the same as JavaScript libraries. Built-in modules (http, fs, path, url) and custom module exports.
Example
<!DOCTYPE html><html><body style="font-family:monospace;padding:20px;"><pre>exports.myDateTime = function () {\n return Date();\n};</pre></body></html>
Try it Yourself >>
Opens live sandboxed code editor
Advertisement
Google AdSense Slot (IN-ARTICLE)
Automated High-CTR Ad Rail • Set Publisher ID in config/adsense.php
Community Q&A & Discussion
Verified
No questions yet. Be the first to start the discussion!