@strong-roots-capital/new-session-emitter
v1.0.1
Published
Emit a signal at end of desired session (UTC)
Downloads
10
Readme
new-session-emitter
Emit a signal on conclusion of desired session (UTC)
Install
npm install @strong-roots-capital/new-session-emitter
Use
import NewSessionEmitter from '@strong-roots-capital/new-session-emitter'
let sessionEmitter = new NewSessionEmitter(['1', '5', '15', '1H'])
sessionEmitter.on('newSession', ISR)
function ISR(timeframes: string[]) {
console.log('New sessions:', new Date(), timeframes)
}