New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

validate-card

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

validate-card

This utility allows to validate any RedBud card number provided

latest
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

Validate Card

This tiny module allows validating the correct format of any RedBus card number.

Installation

$ npm install validate-card

Usage

Example app.js:

// Load module
let card = require('validate-card');

// Instantiate
console.log(card.isValid('YOUR_CARD_NUMBER'));

Valid patterns

These are the correct patterns that are valid (With and without dots):

XXX.XXX.XXX [9 Numbers with 2 dots]
XX.XXX.XXX  [8 Numbers with 2 dots]
X.XXX.XXX   [7 Numbers with 2 dots]

XXXXXXXXX   [9 Numbers without dots]
XXXXXXXX    [8 Numbers without dots]
XXXXXXX     [7 Numbers without dots]

Keywords

redbus

FAQs

Package last updated on 11 Jul 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