Socket
Book a DemoInstallSign in
Socket

creditcard-warder

Package Overview
Dependencies
Maintainers
4
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

creditcard-warder

Rules from credit card from Brazil

1.0.1
latest
Source
npmnpm
Version published
Weekly downloads
17
6.25%
Maintainers
4
Weekly downloads
 
Created
Source

creditcard-warder

Size badge Version badge

About

This module is used to validate credit card numbers and get the brand from input. It can say many brands from Brazil.

Install

With npm do:

npm install creditcard-warder --save

Credit Card Brands

Globals

  • Visa
  • Mastercard
  • Amex
  • Dinersclub
  • Discover
  • Unionpay
  • JCB
  • Forbrugsforeningen
  • Dankort

Brazil

  • ELO
  • Hipercard
  • Aura
  • Visa Electron
  • Maestro

Usage

var creditcard = require('creditcard-warder');

var card = creditcard('4514166365215946')
card.getBrand(); // elo
card.validate(); // true

Usage in browser with browserify

CDN latest version:

  • creditcard-warder.min.js

Build with browserify

npm run build
npm run watch

Test

npm run test
npm run test-browser

Keywords

creditcard

FAQs

Package last updated on 27 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.