check-if-word-partial
v1.1.4
Published
partial version of check-if-word npm package by (Devdutta Bain <[email protected]>), which was built on top of check-word by ( < [email protected] >)
Downloads
3
Maintainers
Readme
check-if-word-partial
Check if word exists. Partial version of check-if-word npm package by (Devdutta Bain [email protected]), which was built on top of check-word by ( < [email protected] >)" [s0c5][email protected]. Separated Regex and downsized to check only 4 to 10 letter words for specific use.
install
$ npm install check-if-word-partial
how to use?
var checkWord = require('check-if-word'),
words = checkWord('en'); // setup the language for check, default is en
words.check('dog'); // false (less than 4 letters)
words.check('perro'); // false (wrong word)
words.check('test'); // true
words.getValidWords(["ajsk", "test", "object", "opal", "perl", "perlpali"]); // [ 'test', 'object', 'opal' ]
...
credits
thanks to repository check-if-word