1.0.3 • Published 5 years ago
kinda v1.0.3
kinda
Determines if one string matches another. Returns a value that can be used to sort results.
npm install kinda
Usage:
const kinda = require('kinda');
const haystack = 'A Long String';
kinda('str', haystack);
// 1
kinda('ans', haystack);
// 0.5
kinda('xyz', haystack);
// 0