Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

module export in node js

var users = [
    { userName: "BarneyRubble", age: 38   },
    { userName: "WilmaFlintstone", age: 37 },
    { userName: "FredFlintstone", age: 36 }
];

module.exports.getAllUsers = function(){
    return users;
}
Source by www.stanleyulili.com #
 
PREVIOUS NEXT
Tagged: #module #export #node #js
ADD COMMENT
Topic
Name
3+1 =