open-index/open-npm huggingface dataset:
npm package: @kothman/pubsubts
Description: PubSub module written in TypeScript
Author: Adrian Kothman
Latest version: 1.0.3

# PubSubTs

PubSub system written in TypeScript.

## Contributing
Fork repository, install dependencies (i.e. `yarn install`).
Build via `yarn build`, run tests (make sure to build first) via `yarn test`

## Reference
Install via `yarn add @kothman/pubsubts` or `npm install @kothman/pubsubts`.

In your code:
```
import PubSub from 'pubsubts'
// also valid, but without TypeScript typings
const PubSub = require('pubsubts')
```

### PubSub.on(eventName: string, handler: Function): number
returns reference number, used for PubSub.off

### PubSub.once(eventName: string, handler: Function): number
Same as PubSub.on, except ref is removed (via PubSub.off(eventName, ref)) after being called

### PubSub.off(eventName: string, ref?: number)
Removes specific handler. If ref not provided, removes all handlers for eventName.

### PubSub.emit(eventName: string, data: any)
Calls all registered handlers (with data if provided) for eventName
npm package: @kotify/eslint-config-typescript-react
Description: Eslint config for react with typescript
Author: Konstantin Alekseev
Latest version: 8.0.0

# Eslint config for react with typescript

## Usage

Example .eslintrc.json:

```
module.exports = {
  extends: ['@kotify/eslint-config-typescript-react'],
  rules: {
    '@typescript-eslint/explicit-module-boundary-types': 0,
    '@typescript-eslint/no-explicit-any': 0,
    '@typescript-eslint/no-non-null-assertion': 0,
  },
};
```
npm package: @kotify/frappe-charts
Description: https://github.com/kotify/charts
Author: Kotify
Latest version: 1.4.1-k8

<div align="center">
    <img src="https://github.com/frappe/design/blob/master/logos/logo-2019/frappe-charts-logo.png" height="128">
    <a href="https://frappe.github.io/charts">
        <h2>Frappe Charts clone with fixes for Kotify Team</h2>
    </a>
    <p align="center">
        <a href="https://frappe.github.io/charts">
            <b>Original project</b>
        </a>
    </p>
</div>
npm package: @kotify/neutrino-react-refresh
Description: Neutrino middleware for react-refresh support
Author: Konstantin Alekseev
Latest version: 8.0.0

# Neutrino react-refresh middleware

## Usage

```
const reactRefresh = require('neutrino-react-refresh');

module.exports = {
    use: [
        react(),
        reactRefresh()
    ]
}
```
npm package: @kotify/neutrino-typescript
Description: Neutrino middleware for typescript support
Author: Konstantin Alekseev
Latest version: 8.0.0

# Neutrino typescript middleware

Adds typescript 3+ support via `@babel/preset-typescript`.

## Usage

Options:

- forkTSChecker.enable - bool, enables [fork-ts-checker-webpack-plugin](https://www.npmjs.com/package/fork-ts-checker-webpack-plugin), true by default.
- forkTSChecker.options - object, options to pass to `fork-ts-checker-webpack-plugin`

Example:

```
const typescript = require('neutrino-typescript');

module.exports = {
    use: [
        react(),
        typescript({
            forkTSChecker: {
                options: {
                    typescript: { memoryLimit: 3000 },
                },
            },
        }),
    ]
}
```
npm package: @kotify/neutrino-typescript-eslint
Description: Neutrino middleware for eslint with typescript support
Author: Konstantin Alekseev
Latest version: 7.0.0

# Neutrino middleware to support eslint in typescript project

Adds typescript support for eslint 6.x and typescript 3.x.

## Usage

Middleware accepts options eslint options object that will be merged with base options.

Example:

```
const typescriptEslint = require('neutrino-typescript-eslint');

module.exports = {
    use: [
        react(),
        eslint(),
        typescriptEslint({}, {react: true, reactVersion: '16.13'}),
    ]
}
```