npm.io
1.0.1 • Published 9 years ago

find-alternatives

Licence
MIT
Version
1.0.1
Deps
1
Vulns
0
Weekly
0

Find alternatives

Small library to find alternatives to specified keyword.

Example:

const findAlternatives = require('find-alternatives');
const options = [ 'create', 'delete', 'update' ];

findAlternatives('creat', options); // [ 'create' ]
findAlternatives('creajt', options); // [ 'create' ]
findAlternatives('something', options); // []