Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 397 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 397 Bytes

AS-Events

EventEmitter for AssemblyScript

Features

  • No Dependencies
  • Isomorphic
  • Works in Nodejs/Browser/Wasmer
  • Small code size

Installation

~ npm install as-events

Usage

import { EventEmitter } from 'as-events'

const emitter = new EventEmitter<string>()

emitter.on('event', (data) => {

    //...

})

emitter.emit('event', 'Hello Event Emitter!')