Answers for "how to change function name while exporting in node"

0

how to change function name while exporting in node

function doSomthing(){
  console.log('Hello Word')
}
// do is the name which you want to use in other files 
module.exports = { do:doSomthing }
Posted by: Guest on May-06-2021

Code answers related to "how to change function name while exporting in node"

Code answers related to "Javascript"

Browse Popular Code Answers by Language