FactorDB CLI

The FactorDB is the database to store known factorizations for any number.
This tool can use on your command line.
Although I have already written factordb-pycli with Python before, I want to use this tool on several platforms like on Windows machine and ARM Linux.
Build & Installation (on macOS)
If you use macOS, you should follow the instruction.
Requirements
$ brew install go glide
Build
$ make deps
$ make
$ bin/factordb --help
NAME:
factordb - The CLI for factordb.com
USAGE:
factordb [global options] command [command options] [arguments...]
VERSION:
0.0.1
COMMANDS:
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--json Return response formated JSON
--help, -h show help
--version, -v print the version
After installation, you should copy a binary to your PATH.
Windows
Download pre-build binary from here.
Platform |
Status |
Windows |
 |
CLI
If you want to know the result of factorization of 16, you should type like this:
$ factordb 16
2 2 2 2
If you want to know more detail of result, you can get an answer of JSON format.
$ factordb --json 16
{"id": "https://factordb.com/?id=2", "status": "FF", "factors": [2, 2, 2, 2]}
License
MIT