📜  如何在节点中导出时更改函数名称 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:37.210000             🧑  作者: Mango

代码示例1
function doSomthing(){
  console.log('Hello Word')
}
// do is the name which you want to use in other files 
module.exports = { do:doSomthing }