Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bloodhound-js

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bloodhound-js

bloodhound.js for node and browser

  • 1.2.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11K
increased by10.47%
Maintainers
1
Weekly downloads
 
Created
Source

bloodhound-js

Build Status

bloodhound.js for node and browser

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

npm install bloodhound-js --save

Changes

  • no jquery deps
  • works with both browser and node
  • jquery deferred with es6-promise
  • storage polyfill with storage2
  • ajax with superagent

Usage

var Bloodhound = require('bloodhound-js');
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

Keywords

FAQs

Package last updated on 25 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc