# bloodhound-js-with-request-headers-support

> bloodhound.js with request header support for node and browser

Latest version **0.0.3** (published 2020-12-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install bloodhound-js-with-request-headers-support
pnpm add bloodhound-js-with-request-headers-support
yarn add bloodhound-js-with-request-headers-support
bun add bloodhound-js-with-request-headers-support
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2020-12-19 |
| First published | 2020-12-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 273.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | visualjeff |
| Maintainers | visualjeff |
| Keywords | bloodhound, index, node, search |

## Links

- npm: https://www.npmjs.com/package/bloodhound-js-with-request-headers-support
- Repository: https://github.com/visualjeff/bloodhound-js-with-request-headers-support
- Homepage: https://github.com/visualjeff/bloodhound-js-with-request-headers-support#readme
- Issues: https://github.com/visualjeff/bloodhound-js-with-request-headers-support/issues
- npm.io page: https://npm.io/package/bloodhound-js-with-request-headers-support

## Dependencies (4)

- [storage2](https://npm.io/package/storage2.md) ^0.1.0
- [superagent](https://npm.io/package/superagent.md) ^3.8.3
- [es6-promise](https://npm.io/package/es6-promise.md) ^3.0.2
- [object-assign](https://npm.io/package/object-assign.md) ^4.0.1

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 0.0.3 (latest) — 2020-12-19
- 0.0.2 — 2020-12-18
- 0.0.1 — 2020-12-18

## README

# bloodhound-js-with-request-headers-support

> Bloodhound is the typeahead.js suggestion engine. Bloodhound is robust, flexible, and offers advanced functionalities such as prefetching, intelligent caching, fast lookups, and backfilling with remote data.

### Installtion

```sh
npm install bloodhound-js-with-request-headers-support --save
```

### Changes

- no jquery deps
- works with both browser and node
- jquery deferred with [es6-promise](https://www.npmjs.com/package/es6-promise)
- storage polyfill with [storage2](https://www.npmjs.com/package/storage2)
- ajax with [superagent](https://www.npmjs.com/package/superagent)
- now with request header support!

### Usage

```javascript
var Bloodhound = require('bloodhound-js-with-request-headers-support');
var engine = new Bloodhound({
  local: ['dog', 'pig', 'moose'],
  queryTokenizer: Bloodhound.tokenizers.whitespace,
  datumTokenizer: Bloodhound.tokenizers.whitespace
});

var promise = engine.initialize();

promise.then(function() {
  console.log('engine init done');

  engine.search(
    'd',
    function(d) {
      console.log(d);
    },
    function(d) {
      console.log(d);
    }
  );
});
```

### License

MIT

---
_Source: https://npm.io/package/bloodhound-js-with-request-headers-support · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
