Rewrite emacs-flx in TypeScript, with added support for JavaScript
You will need to first install the package:
$ npm install flx-ts
const flx_ts = require('flx-ts');
console.log(flx_ts.Flx.Score("buffer-file-name", "bfn"));
import { Flx } from 'flx-ts';
console.log(Flx.Score("buffer-file-name", "bfn"));
In your index.html
:
<script src="/path/to/flx.js"></script>
In your javascript file:
console.log(flx_ts.Flx.Score("buffer-file-name", "bfn"));
To run tests:
$ npm install --dev
$ npm run build
📝 P.S. Source are from a Reddit post What is your go to client-side fuzzy searching library?.
flx-ts
is distributed under the terms of the MIT license.
See LICENSE
for details.