UNPKG

pm2

Version:

Production process manager for Node.JS applications with a built-in load balancer.

12 lines (7 loc) 266 B
'use strict' const PMX = require('./pmx') const IO_KEY = Symbol.for('@pm2/io') const isAlreadyHere = (Object.getOwnPropertySymbols(global).indexOf(IO_KEY) > -1) const io = isAlreadyHere ? global[IO_KEY] : new PMX().init() global[IO_KEY] = io module.exports = io