Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/azat-co/practicalnode
/ shutdown
Function
shutdown
code/ch8/rest-hapi/index.js:109–113 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
107
}
108
109
const
shutdown = () => {
110
server.stop({}, () => {
111
process.exit(0)
112
})
113
}
114
115
if
(require.main === module) {
116
console.info(
'Running app as a standalone'
)
Callers
1
index.js
File · 0.50
Calls
no outgoing calls
Tested by
no test coverage detected