Git Product home page Git Product logo

bcbc's Introduction

bcbc

Github Workflows 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

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

See PkgGoDev

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

bcbc's People

Contributors

runrioter avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.