https://github.com/promptapi/bin-checker-pkg
NPM package for Prompt API's BIN Checker API
https://github.com/promptapi/bin-checker-pkg
api-marketplace api-wrapper bin-checker bin-database bin-lookup bin-number bincheck-api credit-card credit-card-bin creditcardfrauddetection javascript modules nodejs npm-package promptapi
Last synced: 29 days ago
JSON representation
NPM package for Prompt API's BIN Checker API
- Host: GitHub
- URL: https://github.com/promptapi/bin-checker-pkg
- Owner: promptapi
- License: mit
- Created: 2020-08-30T19:40:55.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-09-11T05:08:40.000Z (over 5 years ago)
- Last Synced: 2025-10-04T07:54:06.786Z (4 months ago)
- Topics: api-marketplace, api-wrapper, bin-checker, bin-database, bin-lookup, bin-number, bincheck-api, credit-card, credit-card-bin, creditcardfrauddetection, javascript, modules, nodejs, npm-package, promptapi
- Language: Ruby
- Homepage: https://promptapi.com/marketplace/description/bincheck-api
- Size: 21.5 KB
- Stars: 0
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README

[](https://badge.fury.io/js/%40promptapi%2Fbin-checker-pkg)
# Prompt API - BIN Checker - Node Package
`@promptapi/bin-checker-pkg` is a simple JavaScript wrapper for [bincheck-api][bincheck-api].
## Requirements
1. You need to signup for [Prompt API][promptapi-signup]
1. You need to subscribe [bincheck-api][bincheck-api], test drive is **free!!!**
1. You need to set `PROMPTAPI_TOKEN` environment variable after subscription.
then;
```bash
$ npm install @promptapi/bin-checker-pkg
```
or, install from GitHub registry;
```bash
$ npm install @promptapi/bin-checker-pkg@0.1.3
```
---
## Example Usage
```javascript
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](https://github.com/promptapi) - Creator, maintainer
---
## Contribute
All PR’s are welcome!
1. `fork` (https://github.com/promptapi/bin-checker-pkg/fork)
1. Create your `branch` (`git checkout -b my-feature`)
1. `commit` yours (`git commit -am 'Add awesome features...'`)
1. `push` your `branch` (`git push origin my-feature`)
1. 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][coc].
[promptapi-signup]: https://promptapi.com/#signup-form
[bincheck-api]: https://promptapi.com/marketplace/description/bincheck-api
[coc]: https://github.com/promptapi/bin-checker-pkg/blob/main/CODE_OF_CONDUCT.md