global-card-ident

1.0.8 • Public • Published

global-card-ident

JavaScript identifier for the Credit Card number for Global Issuers/Brands. Returning data, mask, regex and brand/logo image in SVG.

Identificador global de JavaScript para o número do cartão de crédito para bandeiras/emissoras globais. Retornando dados, máscara, regex e imagem de marca/logo em SVG.

Identificador JavaScript global para el número de tarjeta de crédito para marcas/emisores globales. Devolución de datos, máscara, expresiones regulares e imagen de marca/logotipo en SVG.

Default use

How to install:

Published in https://www.npmjs.com/package/global-card-ident


$ npm i global-card-ident

How to use:

const CardIdent = require('global-card-ident')

console.log(CardIdent('5031 4332 1540 6351'))

Return sample:

{
  issuer: 'Mastercard',
  brand: 'mastercard',
  logo: '<svg id="card-maestercard"  xmlns="http://www.w3.org/2000/svg">.../image data/...</svg>',
  prefixes: '5',
  mask: '0000 0000 0000 0000',
  regex: '^(5[1-5]\\d{0,2}|22[2-9]\\d{0,1}|2[3-7]\\d{0,2})\\d{0,12}',
  active: true,
  length: [ 16 ],
  validation: true,
  number: 5031433215406351,
  industry: 'Banking and financial'
}

Return from npm test

$ npm test

> global-card-ident@1.0.0 test
> node test.js

{
  issuer: 'Mastercard',
  brand: 'mastercard',
  logo: '<svg id="card-maestercard"  xmlns="http://www.w3.org/2000/svg">.../image data/...</svg>',
  prefixes: '5',
  mask: '0000 0000 0000 0000',
  regex: '^(5[1-5]\\d{0,2}|22[2-9]\\d{0,1}|2[3-7]\\d{0,2})\\d{0,12}',
  active: true,
  length: [ 16 ],
  validation: true,
  number: 5031433215406351,
  industry: 'Banking and financial'
}
{
  issuer: 'Visa',
  brand: 'visa',
  logo: '<svg id="card-visa" xmlns="http://www.w3.org/2000/svg">.../image data/...</svg>',
  prefixes: '4',
  mask: [ '0000 0000 0000 0000' ],
  regex: [ '^4\\d{0,15}' ],
  active: true,
  length: [ 13, 16 ],
  validation: true,
  number: 4235647728025682,
  industry: 'Banking and financial'
}
{
  issuer: 'American Express',
  brand: 'amex',
  logo: '<svg id="card-amex" xmlns="http://www.w3.org/2000/svg">.../image data/...</svg>',
  prefixes: '34,37',
  mask: [ '0000 000000 00000' ],
  regex: [ '^3[47]\\d{0,13}' ],
  active: true,
  length: [ 13 ],
  validation: true,
  number: 375365153556885,
  industry: 'Travel and entertainment'
}

Join here -> Project at GitHub

If you are interested in contributing with new checkups for other types of Debit/Credit Cards, contact us by clicking on [NewIssue] at link https://github.com/alailsonribeiro/global-card-ident/issues of GitHub, for know how to get involved in the project.

Se você tiver interesse em contribuir com novos checkups para outros tipos de Cartões de Credito/Débito, entre em contato conosco clicando em [NewIssue] no link https://github.com/alailsonribeiro/global-card-ident/issues of GitHub, para saber como se envolver no projeto.

Si está interesado en contribuir con nuevos chequeos para otro tipo de Tarjetas de débito/crédito, contáctenos haciendo clic en [NewIssue] en el enlace https://github.com/alailsonribeiro/global-card-ident/issues de GitHub , para aprender a involucrarse en el proyecto.

Si vous souhaitez contribuer à de nouveaux contrôles pour d'autres types de Cartes de débit/crédit, contactez-nous en cliquant sur [NewIssue] sur le lien https://github.com/alailsonribeiro/global-card-ident/issues de GitHub , pour apprendre à s'impliquer dans le projet.

Wenn Sie daran interessiert sind, neue Überprüfungen für andere Arten vonDebit-/Kreditkarten, kontaktieren Sie uns, indem Sie unter dem Link https://github.com/alailsonribeiro/global-card-ident/issues von GitHub auf [NewIssue] klicken , um zu lernen, wie man sich an dem Projekt beteiligt.

如果您有兴趣为其他类型的借记卡/信用卡提供新的检查功能,请通过以下链接与我们联系:GitHub 的链接https://github.com/alailsonribeiro/global-card-ident/issues上的 [NewIssue],知道如何参与该项目。

إذا كنت مهتمًا بالمساهمة في إجراء فحوصات لأنواع أخرى من بطاقات الخصم / الائتمان ، فاتصل بنا من خلال النقر على [إصدار جديد] على الرابط https://github.com/alailsonribeiro/global-card-ident/issues of GitHub لمعرفة كيفية المشاركة في المشروع.

他の種類のデビット/クレジットカードの新しい検査に貢献することに興味がある場合は、リンクhttps://github.com/alailsonribeiro/global-card-ident/issues of GitHub[NewIssue] をクリックしてお問い合わせください。 **、プロジェクトに参加する方法を知っているため。

About Creator: Alailson Barbosa Ribeiro

alt text

Package Sidebar

Install

npm i global-card-ident

Weekly Downloads

12

Version

1.0.8

License

MIT

Unpacked Size

212 kB

Total Files

41

Last publish

Collaborators

  • alailson