Skip to content

DanieliusDev/events.ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Events.ts

Events.ts is a Deno module that implements typings to the Node.js event emtter.

Example

deno run https://deno.land/x/events_ts/example.ts

or

import EventEmitter from 'https://deno.land/x/events_ts/mod.ts';

const emitter = new EventEmitter<{ message: [message: string] }>();

emitter.on('message', console.log);
emitter.emit('message', 'Hello, World!');

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published