bcbc

command module
v0.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2020 License: MIT Imports: 1 Imported by: 0

README

bcbc

Github Workflows

GoDoc GoVersion GoReportCard

/bcbc/ : China UnionPay Bank Card BIN Checker

A tool used for checking bank card BIN in both CLI and HTTP server mode.

Install

  1. Download directly from HERE

  2. 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
CLI mode
$ bcbc search -c 6222021234567890123 -o json

> {"bin":"622202","bank":"ICBC","name":"中国工商银行","type":"DC","length":19}
Server mode
$ bcbc serve -p :3232

$ curl http://127.0.0.1:3232/cardInfo.json?cardNo=6222021234567890123

> {"bin":"622202","bank":"ICBC","name":"中国工商银行","type":"DC","length":19}

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package bank provides China UnionPay CardBIN searching.
Package bank provides China UnionPay CardBIN searching.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL