Skip to content
This repository has been archived by the owner on Apr 2, 2020. It is now read-only.
/ term-suggest Public archive

Find closest matching suggestion for a word

License

Notifications You must be signed in to change notification settings

Tessmore/term-suggest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Term suggest

Find closest matching suggestion for a word.

npm install term-suggest

Usage

var suggester = require('term-suggest');

var input = "stauts";
var terms = ["clone", "pull", "push", "commit", "status", "help"];

var output = suggester.closest(input, terms); // "status"

You can also use it in the browser, see the examples folder.

About

Find closest matching suggestion for a word

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published