Skip to content
This repository has been archived by the owner on Feb 20, 2019. It is now read-only.

strong-roots-capital/session-signal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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