Skip to content

geminiyellow/nodejs-module-examples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeJS module examples

Simple examples of different flavors to create modules in NodeJS


  • basic.js - just exports method as they are
  • singleton.js - exports a singleton object and its methods
  • obj-instance.js - exports an object constructor to initialize object before it's usage
  • obj-instance.js - exports an object instantiated at runtime - also consructor to show up the difference
  • test-server.js - an example including all the different require methods

About

Examples of Nodejs module creation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%