open-index/open-npm huggingface dataset:
npm package: @migpalg/event-emitter
Description: This package provides a robust implementation of the event emitter pattern, allowing developers to create and manage custom events with ease.
Author: Miguel Palacio
Latest version: 1.0.0

# `@migpalg/event-emitter`

This package provides a robust implementation of the event emitter pattern, allowing developers to create and manage custom events with ease.

## 🚀 Getting started

Install this package with your favorite package manager:

```bash
npm install @migpalg/event-emitter
```

With yarn

```bash
yarn add @migpalg/event-emitter
```

Then you can start using this package to create event emitters and listeners:

```js
import { EventEmitter } from "@migpalg/event-emitter";

const eventEmitter = new EventEmitter();

eventEmitter.on("test-event", ({ name }) => {
  console.log(`called event with: ${name}`);
});

eventEmitter.emit("test-event", { name: "John" });
```

We highly recommend using this package with typescript to describe your own set of events

```ts
import { EventEmitter } from "@migpalg/event-emitter";

export type MyEventMap = {
  push: { target: string };
};

const emitter = new EventEmitter<MyEventMap>();

emitter.emit("push", { target: "hello world!" });
```
npm package: @migrate-to-esm/good-listener
Description: A more versatile way of adding & removing event listeners
Latest version: 1.2.2

# good-listener

[![Build Status](http://img.shields.io/travis/zenorocha/good-listener/master.svg?style=flat)](https://travis-ci.org/zenorocha/good-listener)

> A more versatile way of adding & removing event listeners.

![good listener](https://cloud.githubusercontent.com/assets/398893/10718224/dfc25f6c-7b2a-11e5-9d3d-75b35e8603c8.jpg)

## Install

You can get it on npm.

```
npm install good-listener --save
```

Or bower, too.

```
bower install good-listener --save
```

If you're not into package management, just [download a ZIP](https://github.com/zenorocha/good-listener/archive/master.zip) file.

## Setup

###### Node (Browserify)

```js
var listen = require('good-listener');
```

###### Browser (Standalone)

```html
<script src="dist/good-listener.js"></script>
```

## Usage

### Add an event listener

By passing a string selector [(see full demo)](https://github.com/zenorocha/good-listener/blob/master/demo/selector.html).

```js
listen('.btn', 'click', function(e) {
    console.log(e);
});
```

Or by passing a HTML element [(see full demo)](https://github.com/zenorocha/good-listener/blob/master/demo/node.html).

```js
var logo = document.getElementById('logo');

listen(logo, 'click', function(e) {
    console.log(e);
});
```

Or by passing a list of HTML elements [(see full demo)](https://github.com/zenorocha/good-listener/blob/master/demo/nodelist.html).

```js
var anchors = document.querySelectorAll('a');

listen(anchors, 'click', function(e) {
    console.log(e);
});
```

### Remove an event listener

By calling the `destroy` function that returned from previous operation [(see full demo)](https://github.com/zenorocha/good-listener/blob/master/demo/destroy.html).

```js
var listener = listen('.btn', 'click', function(e) {
    console.log(e);
});

listener.destroy();
```

## Browser Support

| <img src="https://clipboardjs.com/assets/images/chrome.png" width="48px" height="48px" alt="Chrome logo"> | <img src="https://clipboardjs.com/assets/images/edge.png" width="48px" height="48px" alt="Edge logo"> | <img src="https://clipboardjs.com/assets/images/firefox.png" width="48px" height="48px" alt="Firefox logo"> | <img src="https://clipboardjs.com/assets/images/ie.png" width="48px" height="48px" alt="Internet Explorer logo"> | <img src="https://clipboardjs.com/assets/images/opera.png" width="48px" height="48px" alt="Opera logo"> | <img src="https://clipboardjs.com/assets/images/safari.png" width="48px" height="48px" alt="Safari logo"> |
|:---:|:---:|:---:|:---:|:---:|:---:|
| Latest ✔ | Latest ✔ | Latest ✔ | 9+ ✔ | Latest ✔ | Latest ✔ |

## License

[MIT License](http://zenorocha.mit-license.org/) © Zeno Rocha
npm package: @migrate-to-esm/tiny-emitter
Description: A tiny (less than 1k) event emitter library
Author: Scott Corgan
Latest version: 2.0.2

# tiny-emitter

A tiny (less than 1k) event emitter library.

## Install

### npm

```
npm install tiny-emitter --save
```

## Usage

```js
var Emitter = require('tiny-emitter');
var emitter = new Emitter();

emitter.on('some-event', function (arg1, arg2, arg3) {
 //
});

emitter.emit('some-event', 'arg1 value', 'arg2 value', 'arg3 value');
```

Alternatively, you can skip the initialization step by requiring `tiny-emitter/instance` instead. This pulls in an already initialized emitter.

```js
var emitter = require('tiny-emitter/instance');

emitter.on('some-event', function (arg1, arg2, arg3) {
 //
});

emitter.emit('some-event', 'arg1 value', 'arg2 value', 'arg3 value');
```

## Instance Methods

### on(event, callback[, context])

Subscribe to an event

* `event` - the name of the event to subscribe to
* `callback` - the function to call when event is emitted
* `context` - (OPTIONAL) - the context to bind the event callback to

### once(event, callback[, context])

Subscribe to an event only **once**

* `event` - the name of the event to subscribe to
* `callback` - the function to call when event is emitted
* `context` - (OPTIONAL) - the context to bind the event callback to

### off(event[, callback])

Unsubscribe from an event or all events. If no callback is provided, it unsubscribes you from all events.

* `event` - the name of the event to unsubscribe from
* `callback` - the function used when binding to the event

### emit(event[, arguments...])

Trigger a named event

* `event` - the event name to emit
* `arguments...` - any number of arguments to pass to the event subscribers

## Test and Build

Build (Tests, Browserifies, and minifies)

```
npm install
npm run build
```

Test

```
npm install
npm test
```

## License

[MIT](https://github.com/scottcorgan/tiny-emitter/blob/master/LICENSE)
npm package: @migrateforce/cli
Description: Unified CLI for converting REST APIs to MCP servers, managing skills, and running migration assessments.
Author: MigrateForce
Latest version: 0.1.2

# @migrateforce/cli

Unified CLI for converting OpenAPI REST APIs into production-ready MCP server code.

## Quick Start

The npm-safe direct invocation is:

```bash
npx @migrateforce/cli convert \
  --spec openapi.yaml \
  --base-url https://api.example.com \
  --output ./my-mcp-server
```

If you want the branded command name (`@migrateforce`) without a global install:

```bash
npx --yes --package @migrateforce/cli @migrateforce convert \
  --spec openapi.yaml \
  --base-url https://api.example.com \
  --output ./my-mcp-server
```

## Convert Command

```bash
migrateforce convert --spec <path> [options]
```

Options:

- `--base-url <url>` Target REST base URL. If omitted, the CLI uses the first absolute `http(s)` URL in `servers[]`.
- `--output <dir>` Output directory (default: `./mcp-server`)
- `--include <pattern>` Include endpoints matching pattern (`"GET /users*"`).
- `--exclude <pattern>` Exclude endpoints matching pattern.
- `--dry-run` Show endpoint-to-tool mapping only.
- `--json` Print generated artifacts as JSON to stdout.
- `--cloud` Use cloud enrichment (lint, skill matching, readiness score).
- `--save-project` Save project to dashboard (requires `--cloud`).
- `--force` Overwrite non-empty output directory.

## Cloud Mode

Set API key:

```bash
export MIGRATEFORCE_API_KEY=mf_live_...
```

Run cloud conversion:

```bash
npx @migrateforce/cli convert \
  --spec openapi.yaml \
  --base-url https://api.example.com \
  --output ./my-mcp-server \
  --cloud \
  --save-project
```