bcbc
/bcbc/ : China UnionPay Bank Card BIN Checker
A tool used for checking bank card BIN in both CLI and HTTP server mode.
Install
-
Download directly from HERE
-
If you are a developer and Go installed, you can build from source code.
$ go get -u -v github.com/hexindai/bcbc
Usage
Show this command help
$ bcbc -h
As a cli
$ bcbc search -c 6222021234567890123 -o json
> {"bin":"622202","bank":"ICBC","name":"ä¸å›½å·¥å•†é“¶è¡Œ","type":"DC","length":19}
As a HTTP server
$ bcbc serve -p :3232
$ curl http://127.0.0.1:3232/cardInfo.json?cardNo=6222021234567890123
> {"bin":"622202","bank":"ICBC","name":"ä¸å›½å·¥å•†é“¶è¡Œ","type":"DC","length":19}
As a library
Contribution
- Add new BIN:
make add len=16 bin=621245
- Build for generating source files:
make build
- Change version in file
cmd/bcbc.go
- Commit! (I will review and release it.)
License
MIT License / Copyright (c) 2018 - 2020