---
jsApi: true
title: "[F] mapEventEmitterToNodeListener"

---
```ts
mapEventEmitterToNodeListener(eventEmitter): SemanticNodeListener
```

Create a Semantic node listener from an event emitter.

## Parameters

| Parameter | Type | Description |
| :------ | :------ | :------ |
| `eventEmitter` | [`EventEmitter`](Class.EventEmitter.md)< [`SemanticNodeListener`](Type.SemanticNodeListener.md) \> | Event emitter. |

## Returns

[`SemanticNodeListener`](Type.SemanticNodeListener.md)

Semantic node listener.
