check-if-word

1.2.1 • Public • Published

check-if-word

check if the word exist in the language configured, the language could be english or spanish. built on top of check-word by [s0c5]david.barinas.dev@gmail.com.

install

$ npm install check-if-word

how to use?

var checkWord = require('check-if-word'),
    words     = checkWord('en'); // setup the language for check, default is en
    
words.check('dog'); // true
words.check('perro'); // false
words.check('hi'); // true
 
 
words.getValidWords(["ajsk", "no", "object", "opal", "perl", "perlpali"]); // [ 'no', 'object', 'opal' ]
 
...
 

credits

thanks to repository atebits/words and [s0c5]david.barinas.dev@gmail.com.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i check-if-word

      Weekly Downloads

      32

      Version

      1.2.1

      License

      GPL 2.0

      Unpacked Size

      39.6 MB

      Total Files

      10

      Last publish

      Collaborators

      • devduttabain