UNPKG

eploy2

Version:

Easy deployment for any programming languages and also transfer the files to a server instantly with a single command

23 lines (16 loc) 382 B
import { EventEmitter } from 'events'; const emitter = new EventEmitter(); class Observalble { event: string; constructor(event: string) { this.event = event; emitter.emit(event) emitter.on('event', (args: any) => { this.subscribe(args) }) } subscribe(cb: any) { return cb; } } export default Observalble