@strong-roots-capital/new-session-emitter
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

new-session-emitter Build status npm version codecov

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

Related

Package Sidebar

Install

npm i @strong-roots-capital/new-session-emitter

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

8.65 kB

Total Files

4

Last publish

Collaborators

  • amchelle
  • hamroctopus