npm.io
0.0.1 • Published 2 years ago

fast-string-similarity

Licence
MIT
Version
0.0.1
Deps
2
Size
70 kB
Vulns
0
Weekly
0
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)

Fast String Similarity

3x faster that JS implementation.

Building

To compile the extension for the first time, run

$ npm i
$ npm run configure
$ npm run build

All subsequent builds only need npm run build

You can confirm everything built correctly by running the test suite.

Working With the Extension Locally

After building:

$ node
> var fsc = require('fast-string-similarity')
undefined
> fsc.computeStringSimilarity("the quick brown fox", "the quick not brown fox")
0.8484848484848485
To run tests:
$ npm test

Keywords