Process Node
The process object is a global that provides information about, and control over, the current Node.js process.
code:process.js
//globalなので、書かなくてもいいが、明示したほうが親切?
const process = require('process');
Process | Node.js v12.13.1 Documentation
nextTick()
Event Loop イベントループにおいて次まで関数の実行を遅延
指定されたコールバック関数 callbackをイベントキューの先頭に渡す。
process_process_nexttick | Node.js v12.13.1 Documentation
Vue.jsでもDOM Document Object Model更新待つために使うことあり
更新後のDOM Document Object Modelにアクセスしたいときに使う