Code Monkey home page Code Monkey logo

bin-checker-pkg's Introduction

Node npm version

Prompt API - BIN Checker - Node Package

@promptapi/bin-checker-pkg is a simple JavaScript wrapper for bincheck-api.

Requirements

  1. You need to signup for Prompt API
  2. You need to subscribe bincheck-api, test drive is free!!!
  3. You need to set PROMPTAPI_TOKEN environment variable after subscription.

then;

$ npm install @promptapi/bin-checker-pkg

or, install from GitHub registry;

$ npm install @promptapi/[email protected]

Example Usage

const promptapi = require('@promptapi/bin-checker-pkg')

promptapi.binChecker('370244').then(result => {
  if(result.error){
    console.log(result.error)
  } else {
    console.log(result.bank_name)
    console.log(result.country)
    console.log(result.url)
    console.log(result.type)
    console.log(result.scheme)
    console.log(result.bin)
  }
})

Result:

Banesco
Venezuela (bolivarian Republic Of)
www.banesco.com
Credit
American Express
370244

If you receive an error, result will contain error as string.


Development

All you need is node and npm...


License

This project is licensed under MIT


Contributer(s)


Contribute

All PR’s are welcome!

  1. fork (https://github.com/promptapi/bin-checker-pkg/fork)
  2. Create your branch (git checkout -b my-feature)
  3. commit yours (git commit -am 'Add awesome features...')
  4. push your branch (git push origin my-feature)
  5. Than create a new Pull Request!

This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

bin-checker-pkg's People

Watchers

 avatar  avatar  avatar  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.