open-index/open-npm huggingface dataset:
npm package: @nguyen-t/whisper
Description: A basic Node.js native module wrapper for Whisper.cpp written using NAPI-RS.
Author: nguyen-t
Latest version: 0.0.5

# Node.js Whisper Addon

A basic Node.js native module wrapper for Whisper.cpp written using NAPI-RS.

TODO:
- Better build process (CoreML, OpenCL)
- Support more architecture in Github Actions
- Separate state and model
- Documentation
npm package: @nguyen-t/whisper-linux-x64-gnu
Description: This is the **x86_64-unknown-linux-gnu** binary for `@nguyen-t/whisper`
Latest version: 0.0.5

# `@nguyen-t/whisper-linux-x64-gnu`

This is the **x86_64-unknown-linux-gnu** binary for `@nguyen-t/whisper`
npm package: @nguyen-t/whisper-win32-x64-msvc
Description: This is the **x86_64-pc-windows-msvc** binary for `@nguyen-t/whisper`
Latest version: 0.0.5

# `@nguyen-t/whisper-win32-x64-msvc`

This is the **x86_64-pc-windows-msvc** binary for `@nguyen-t/whisper`
npm package: @nguyen-thanh-tung/minisearch-synonyms
Description: Use MiniSearch with synonyms
Author: Radek Pazdera
Latest version: 1.0.0

# MiniSearch Synonyms

[![Tests](https://github.com/pazdera/minisearch-synonyms/actions/workflows/tests.yml/badge.svg)](https://github.com/pazdera/minisearch-synonyms/actions/workflows/tests.yml)
[![Coverage Status](https://coveralls.io/repos/github/pazdera/minisearch-synonyms/badge.svg?branch=main)](https://coveralls.io/github/pazdera/minisearch-synonyms?branch=main)
![NPM Version](https://img.shields.io/npm/v/minisearch-synonyms)
![License](https://img.shields.io/npm/l/minisearch-synonyms)
![NPM Type Definitions](https://img.shields.io/npm/types/minisearch-synonyms)

A tiny module that lets you add keyword synonyms to your [MiniSearch](https://github.com/lucaong/minisearch) queries.

## Installation

Using `npm`:

```bash
npm install --save minisearch-synonyms
```

Using `yarn`:

```bash
yarn add minisearch-synonyms
```

You can also access the package via a CDN:

```html
<script src="https://www.unpkg.com/minisearch-synonyms@latest/dist/index.global.js"></script>
```

Remember install `minisearch` as described in the [MiniSearch docs](https://github.com/lucaong/minisearch#installation).

## Usage

Import `minisearch-synonyms` alongside `minisearch`:

```typescript
import MiniSearch from 'minisearch';
import MiniSearchSynonyms from 'minisearch-synonyms';
```

Create an instance of `MiniSearchSynonyms` and define your synonyms:

```typescript
const synonyms = new MiniSearchSynonyms([
  ['car', 'auto', 'automobile', 'vehicle'],
  ['bike', 'bicycle']
]);
```

When searching, pass your query through the `expandQuery` method:

```typescript
const query = 'blue car';
const queryWithSynonyms = synonyms.expandQuery(query);
// => {
//   combineWith: 'OR',
//   queries: [
//     'blue car',
//     'blue auto',
//     'blue automobile',
//     'blue vehicle'
//   ],
// }

const results = miniSearch.search(queryWithSynonyms);
```

You can add synonyms at any time:

```typescript
synonyms.addSynonyms(['blue', 'azure', 'navy']);
```

Use the `removeSynonyms` method to remove entire groups of synonyms:

```typescript
synonyms.removeSynonyms('car');
// => removes the entire group of synonyms that includes 'car'
```

MiniSearchSynonyms supports multiple terms separated by whitespace or punctuation:

```typescript
synonyms.addSynonyms(['ai', 'artificial intelligence']);

const query = 'the dangers of ai';
const queryWithSynonyms = synonyms.expandQuery(query);
// => {
//   combineWith: 'OR',
//   queries: [
//     'the dangers of ai',
//     'the dangers of artificial intelligence',
//   ],
// }
```

## License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.