1.1.7 • Published 10 years ago

suggester v1.1.7

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

Suggester Build Status

library for create suggest index

Usage

code
var Suggester = require('suggester');
var suggester = new Suggester();
suggester.add('hello world');
suggester.add('hello city');
suggester.add('hello city');
suggester.add('hello city');
suggester.add('hello village');
suggester.add('hello village');
console.log(suggester.search('hell'));
result
[ 'hello city', 'hello village', 'hello world' ]

Example

Autocomplete for NPM packages
Run server
cd example\web
npm install
PORT=58468 node server.js 
Wait
[gap@localhost web]$ PORT=58468 node server.js 
   info  - socket.io started
Downloading data about packages...
Creating suggest index...
Please open http://localhost:58468
Loaded  500  docs
Loaded  1000  docs
...
Open website
xdg-open http://localhost:58468
Result

alt text

API

api.md

License

MIT Copyright (c) 2015 Yaroslav Gaponov yaroslav.gaponov@gmail.com

1.1.7

10 years ago

1.1.6

10 years ago

1.1.5

10 years ago

1.1.4

10 years ago

1.1.3

10 years ago

1.1.2

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago