New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-57.14%
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

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc