Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

scrabble

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scrabble

Scrabble is a lightweight module that lets you cheat on a wide range of word games, most notably, the eponymous. Pass your letters into Scrabble as a string and it will return an array of all the possible combinations of those letters that comprise words

  • 1.0.13
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-60%
Maintainers
1
Weekly downloads
 
Created
Source

Scrabble

Scrabble is a lightweight module that lets you cheat on a wide range of word games, most notably, the eponymous. Pass your letters into Scrabble as a string and it will return an array of all the possible combinations of those letters that comprise words in the English Dictionary. Scrabble is also useful for "Words with Friends," and other popular iOS and Android apps.


API

scrabble(string)

var scrabble = require('scrabble');

 


-- Example 1 --
console.log(scrabble('hdjfaloc'));

Output will be:

["a", "acold", "ad", "ado", "ah", "ahold", "al", "cad", "calf", "calo", "chad", "chao", "clad", "clod", "coal", "cod", "coda", "col", "cola", "cold", "da", "dah", "dahl", "dal", "dhal", "do", "doc", "dol", "fa", "fad", "fado", "floc", "foal", "focal", "foh", "fold", "ha", "had", "hadj", "haj", "half", "halo", "hao", "ho", "hod", "hold", "jo", "la", "lac", "lad", "lo", "loach", "load", "loaf", "loca", "loch", "oaf", "oca", "od", "oda", "odah", "of", "oh", "old"]

   


-- Example 2 --
console.log(scrabble('zjfykiotdp'));

Output will be:

["di", "dif", "dip", "dipt", "dit", "ditz", "ditzy", "do", "doit", "dopy", "dot", "doty", "dozy", "fi", "fid", "fido", "fit", "fiz", "fop", "foy", "fozy", "i", "id", "if", "it", "jo", "joky", "jot", "joy", "ki", "kid", "kif", "kip", "kit", "koi", "koji", "kop", "od", "of", "oft", "oi", "op", "opt", "oy", "pi", "pit", "pity", "pod", "poi", "poky", "pot", "pyoid", "ti", "tidy", "tip", "to", "tod", "tody", "top", "topi", "toy", "typo", "yid", "yip", "yo", "yod", "yok", "zip", "zit"]

   


-- Example 3 --
console.log(scrabble('jke'));

Output will be:

"No combination of these letters creates a word in the Engish language."

   


-- Example 4 --
console.log(scrabble(87656));

Output will be:

"Your input is not a string."

 

Notes

Scrabble is a lightweight module that lets you cheat on a wide range of word games, most notably, the eponymous. Pass your letters into Scrabble as a string and it will return an array of all the possible combinations of those letters that comprise words in the English Dictionary. Scrabble is also useful in "Words with Friends," "Take a Letter," "Typo," "Dabble," "Word on the Street," "Quiddler," "Big Boggle," "Crazy Letters," "Tick-Tock Boom," "Bananagram," "Upwords," "Last Letter," "Wordical," "Latice," "WordSpiel Card Game," "One Up!," "Wordigo," "Buy World," "Paperback," "Letter Tycoon," "Wibbell++," "Wordsy," "Unspeakable Words," "Wordiamo," "WordOn," "SmartFeud," "Tanglet," "Lexica," "Crosswords Arena," "ReWordz," "Word Domination," "Wordfeud," "CrossCraze," "Rex Verbi," "Alphabear," "Letters of Gold," "Word Colors," "WordIt 2," "Webfeud," "Anadrome," "Falling Word Search," "Words of Gold," "Game of Words: Cross and Connect," "Letterpad," "Word Social," "Wordigami," "Wordbase," etc.

Installation

With npm do

$ npm install scrabble

License

(MIT)

Copyright (c) 2019 David H. <email6@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Keywords

FAQs

Package last updated on 25 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc