Narnia's Psychedelic Mushrooms
    Wondering what’s next for npm?Check out our public roadmap! »

    word-exists

    1.0.0 • Public • Published

    Word Exists

    Check if a word exists or not in English-- lightweight package with no extra dependencies.

    Installation

    npm install word-exists --save
    

    or

    yarn add word-exists
    

    Usage

    Simply pass in a string as a parameter and a Boolean will be output. Hyphenated compound words aren't counted as words.

    const wordExists = require('wordExists');
     
    wordExists('word');
    //true
     
    wordExists('notaword');
    //false

    Example Values

    Word Output
    'hello' true
    'olleh' false
    'tic-tac-toe' false
    9 TypeError

    For more examples, see the tests.

    Author

    I, Brandon Suen, created this library. Feel free to check out any of my iOS apps if interested:

    • Quiz Watch, a fun trivia app
    • Geographist, a fun game for learning geography
    • MemRoll, in which you guess when the cameras in your camera roll were taken

    Install

    npm i word-exists

    DownloadsWeekly Downloads

    3

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    3.37 MB

    Total Files

    5

    Last publish

    Collaborators

    • avatar