# ngx-fi-fuse

> fuse for ngx projects

Latest version **1.0.0** (published 2019-09-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install ngx-fi-fuse
pnpm add ngx-fi-fuse
yarn add ngx-fi-fuse
bun add ngx-fi-fuse
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-09-13 |
| First published | 2019-07-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 20.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Maintainers | fiakkasa |
| Keywords | fuse, fuzzy search, angular |

## Links

- npm: https://www.npmjs.com/package/ngx-fi-fuse
- Repository: https://github.com/fiakkasa/ngx-fi-utils
- Homepage: https://github.com/fiakkasa/ngx-fi-utils#readme
- Issues: https://github.com/fiakkasa/ngx-fi-utils/issues
- npm.io page: https://npm.io/package/ngx-fi-fuse

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^1.9.0

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2019-09-13
- 0.2.0 — 2019-09-01
- 0.1.0 — 2019-07-20
- 0.0.2 — 2019-07-12
- 0.0.1 — 2019-07-06

## README

# NgxFiFuse

[fuse](https://fusejs.io/) as ngx-fi-fuse

## Installation

- `npm i fuse.js --save`
- `npm i ngx-fi-fuse --save`

## How to use

### In a module

```typescript
import { NgModule } from "@angular/core";
import { NgxFiFuseModule } from "ngx-fi-fuse";

@NgModule({
  imports: [NgxFiFuseModule], // for consumption within the scope of the module
  exports: [NgxFiFuseModule] // if propagation is required
})
export class SomeModule {}
```

### Where required

```typescript
import { Inject } from "@angular/core";
import { FuseOptions } from "fuse.js";
import { FuseFactoryDefinition, FUSE_TOKEN } from "ngx-fi-fuse";

export interface SomeItem {}

export class SomeClass {
  constructor(@Inject(FUSE_TOKEN) private fuseFactory: FuseFactoryDefinition) {
    const collection: SomeItem[] = [];
    const options: FuseOptions<SomeItem> = {};
    const fuse = this.fuseFactory<SomeItem>(collection, options);
  }
}
```

### For testing

```typescript
import { NgxFiFuseModule } from "ngx-fi-fuse";
import { FuseFactoryDefinition, FUSE_TOKEN } from "ngx-fi-fuse";

describe('TestingTitle', () => {
  let fuseFactory: FuseFactoryDefinition;
  beforeEach(async(() => {
      TestBed.configureTestingModule({
        imports: [NgxFiFuseModule]
      });

      fuseFactory = TestBed.get(FUSE_TOKEN);
    }));
  }));
}));
```

---
_Source: https://npm.io/package/ngx-fi-fuse · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
