Skip to content

Instantly share code, notes, and snippets.

@mizanRahman
Created October 30, 2012 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mizanRahman/3979917 to your computer and use it in GitHub Desktop.
Save mizanRahman/3979917 to your computer and use it in GitHub Desktop.
how to use modules in a node.js applications
module.exports = {
english: function(){console.log('hello world');},
russian: function(){console.log('hola');},
bangla: function(){console.log('sagotom');}
}
require('events')
hello= require('./hello');
hello.english();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment