Need Private Modules

    session-signal
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.4 • Public • Published

    session-signal Build Status npm version Code coverage

    Emit a signal at end of desired session (UTC)

    Install

    npm install session-signal

    Use

    import SessionSignal from 'session-signal'
     
    let sessionEmitter = new SessionSignal(['1', '5', '15', '1H']).getEmitter()
    sessionEmitter.on('newSession', ISR)
     
    function ISR(sessions: number[]) {
        console.log('New session!', new Date(), sessions)
    }

    Related

    Index


    Install

    npm i session-signal

    DownloadsWeekly Downloads

    13

    Version

    1.0.4

    License

    ISC

    Unpacked Size

    18.3 kB

    Total Files

    11

    Last publish

    Collaborators

    • hamroctopus