📜  节点主 - Javascript 代码示例

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

代码示例1
// main.js / main.ts (the filename doesn't matter)

function main() {
  console.log("Hello world");
}

if (require.main === module) {
  main();
}