# ee-event

> js event implementation

Latest version **0.1.1** (published 2013-03-16) · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install ee-event
pnpm add ee-event
yarn add ee-event
bun add ee-event
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2013-03-16 |
| First published | 2013-03-16 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Michael van der Weg |
| Maintainers | ee |

## Links

- npm: https://www.npmjs.com/package/ee-event
- Repository: https://github.com/eventEmitter/ee-event
- Issues: https://github.com/eventEmitter/ee-event/issues
- npm.io page: https://npm.io/package/ee-event

## Dependencies (1)

- [ee-class](https://npm.io/package/ee-class.md) *

## Recent versions

- 0.1.1 (latest) — 2013-03-16
- 0.1.0 — 2013-03-16

## README

# ee-event


    var   Class     = require( "ee-class" )
        , Events    = require( "ee-event" );


    var Human = new Class( {
        inherits: Events
    	, name: ""
    	, age: 29

    	, init: function( options ){
    		this.name = options.name;
    	}


    	, sayHello: function( to ){
            this.emit( "startHello" );
    		console.log( "Hi %s, my name is %s and i'm %i years old.", to, this.name, this.age );
            this.emit( "endHello" );
    	}
    } );



    var Boy = new Class( {
    	inherits: Human
    	, age: 12
    } );


    var fabian = new Boy( { 
        name: "Fabian" 
        , on: {
            startHello: function(){ console.log( "starting console output:" ); }
            endHello: function(){ console.log( "finished console output!" ); }
        }
    } );


    fabian.sayHello();  // starting console output:
                        // Hi my name is Fabian and i'm 12 years old.
                        // finished console output!

---
_Source: https://npm.io/package/ee-event · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
