1.0.4 • Published 5 years ago

fuzzy-finder v1.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

fuzzy-finder

Tiny fuzzy searcher (Under 300 bytes gzipped)

npm package version npm downloads standard JS linter travis ci build status project license make a pull request Greenkeeper

Table of Contents

Install

$ npm install fuzzy-finder
# OR
$ yarn add fuzzy-finder

Usage

import fuzzyFinder from 'fuzzy-finder'

console.log(fuzzy('da', [
    'dota.js',
    'stratures.js',
    'structures.js',
    'database.db',
    'user-data.js',
    'dummy-data.txt',
    'other.js'
]))
// [ { match: 'dota.js', rank: 0 },
//   { match: 'database.db', rank: 0 },
//   { match: 'user-data.js', rank: 5 },
//   { match: 'dummy-data.txt', rank: 0 } ]

Check out the example here.

Contributing

Contributions are welcome!

  1. Fork it.
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Or open up a issue.

License

Licensed under the MIT License.

1.0.4

5 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.0

7 years ago