1.0.1 • Published 6 years ago

majorsystem v1.0.1

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

majorsystem NPM version Build Status

Converts numbers into Mnemonics using the Major System. Allows a configurable mapping of consonants to digits and custom word lists.

By default, it uses Lewis Carrol's consonant to digit mapping, however this can be customized by providing a JSON file using the --mapFile option.

Installation

$ npm install --global majorsystem

Usage

majorsystem --help

majorsystem [number]

Options:
  --version         Show version number                                [boolean]
  --maxWords, --mw  Maximum number of words for the mnemonic        [default: 3]
  --limit           Maximum number of mnemonics to display         [default: 10]
  --mapFile         A JSON file mapping digits to consonants       [default: ""]
  --exclude         A comma separated list of words to exclude     [default: ""]
  --wordList        A path to a wordlist file to use               [default: ""]
  --randomize       Shuffle results, still sorting by least words        [count]
  --colorize        Colorize the consonants                              [count]
  --capitalize      Colorize the consonants                              [count]
  --help, -h        Show help                                          [boolean]


Examples:

majorsystem --capitalize 314159

Default Consonant to Number mapping

0: 
  - z
  - r
1: 
  - b
  - c
2: 
  - d
  - w
3: 
  - t
  - j
4: 
  - f
  - q
5: 
  - l
  - v
6: 
  - s
  - x
7: 
  - p
  - m
8: 
  - h
  - k
9: 
  - n
  - g

License

ISC © John De Mott