MCPcopy 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
109const shutdown = () => {
110 server.stop({}, () => {
111 process.exit(0)
112 })
113}
114
115if (require.main === module) {
116 console.info('Running app as a standalone')

Callers 1

index.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected