Socket
Book a DemoInstallSign in
Socket

as-events

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

as-events

EventEmitter for AssemblyScript

latest
Source
npmnpm
Version
0.1.4
Version published
Maintainers
1
Created
Source

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!')

Keywords

assemblyscript

FAQs

Package last updated on 26 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts