door-listener Listen to the door (Node process) and do something! Installation yarn add door-listener Usage import { onClose, onOpen } from 'door-listener' // Top of your entry code onOpen(() => { // do something }) onClose(() => { // do something })