@promptapi/bin-checker-pkg
v0.1.3
Published
NPM package for Prompt API's BIN Checker API
Downloads
4
Maintainers
Readme
Prompt API - BIN Checker - Node Package
@promptapi/bin-checker-pkg
is a simple JavaScript wrapper for bincheck-api.
Requirements
- You need to signup for Prompt API
- You need to subscribe bincheck-api, test drive is free!!!
- 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)
- Prompt API - Creator, maintainer
Contribute
All PR’s are welcome!
fork
(https://github.com/promptapi/bin-checker-pkg/fork)- Create your
branch
(git checkout -b my-feature
) commit
yours (git commit -am 'Add awesome features...'
)push
yourbranch
(git push origin my-feature
)- 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.