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

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

Create a Semantic node listener from an event emitter.

## Parameters

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

## Returns

[`SemanticNodeListener`](../type-aliases/SemanticNodeListener.md)

Semantic node listener.
