1.2.3 • Published 4 years ago

gxlg_predict v1.2.3

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

Usage example:

const predict = require("gxlg_predict")

var wordlist = [ "apple", "banana", "juice" ]
var cursed = "spplw"

console.log(predict(wordlist, cursed))
//outputs "apple"

Right now there are following layouts:

  • qwerty
  • йцукен

qwerty is used by default.

You can specify, which to choose, by adding a parameter:

console.log(predict(wordlist, cursed, "йцукен"))

Or use your own:

var custom_layout = [
  [ /* first row characters, splitted into an array */ ],
  [ /* second row  ... */ ],
  ...
]

console.log(predict(wordlist, cursed, custom_layout))

Warning: Currently only supports lowcase.

Could be useful for making a cli based on Node.

1.2.0

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago