flx-ts
v0.2.1
Published
Rewrite emacs-flx in TypeScript
Downloads
6
Readme
flx-ts
Rewrite emacs-flx in TypeScript, with added support for JavaScript
🔧 Usage
You will need to first install the package:
$ npm install flx-ts
CommonJS
const flx_ts = require('flx-ts');
console.log(flx_ts.Flx.Score("buffer-file-name", "bfn"));
TypeScript
import { Flx } from 'flx-ts';
console.log(Flx.Score("buffer-file-name", "bfn"));
Browser
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"));
📦 Other alternatives
📝 P.S. Source are from a Reddit post What is your go to client-side fuzzy searching library?.
⚜️ License
flx-ts
is distributed under the terms of the MIT license.
See LICENSE for details.