Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 880 Bytes

README.md

File metadata and controls

29 lines (21 loc) · 880 Bytes

door-listener

semantic-release JavaScript Style Guide ts code style: prettier License: MIT

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
})