string-fuzzy
v1.2.0
Published
> Compare text in any possible way(fuzzy-search).
Downloads
12
Readme
string-fuzzy
Compare text in any possible way(string-fuzzy).
string-fuzzy is an package that let's you compare your text value in any possible way .
Get started
Include
var fuzzy=require('string-fuzzy')
Use
var result=fuzzy.regex("stringtobesearched");
Example
var fuzzy=require('string-fuzzy')
app.get("/search/:id",function(req,res){
var result=fuzzy.regex(req.params.id);
table.find({cat:result},function(err,call){
console.log(call);
})
})
Contribution
Very much appreciate any types of donation and support.
Code
string-fuzzy
follows github convention for contributions. Here are some steps:
- Fork the repo to your github account
- Checkout code from your github repo to your local machine.
- Make code changes and don't forget add related tests.
- Run
npm test
locally before pushing code back. - Create a Pull Request on github.
- Code review and merge
- Changes will be published to NPM within next version.