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

majorsystem

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

majorsystem

> Converts numbers into Mnemonics using the [Major System](https://en.wikipedia.org/wiki/Mnemonic_major_system). Allows a configurable mapping of consonants to digits and custom word lists.

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 09 May 2018

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