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

atm-card-react

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atm-card-react

ATM Card React component

latest
Source
npmnpm
Version
1.4.1
Version published
Weekly downloads
21
133.33%
Maintainers
1
Weekly downloads
 
Created
Source

ATM CARD - React component

Card usage samplesCard usage samples
AltAlt
AltAlt

Demo

Install

# Install package from NPM
% npm install atm-card-react

# or

# Install package from NPM
% yarn add atm-card-react

Usage

// Functional component example
import React, { useState } from 'react';
import { ATMCard } from 'atm-card-react';

function App() {
    const [number, setNumber] = useState<string>('');
    const [month, setMonth] = useState<number>(2);
    const [year, setYear] = useState<number>(22);
    const [holder, setHolder] = useState<string>('');
    const [cvv, setCvv] = useState<string>('');

    return (
        <>
            <ATMCard
              year={year}
              month={month}
              cvv={cvv}
              number={number}
              holderName={holder}
              bankLogo={
                <h1 style={{ 
                  fontFamily: 'Arial', 
                  fontSize: 30 * scale, 
                  color: 'white' 
                }}>Cool Bank Logo</h1>
              }
              lifted
              system={system}
              scale={scale}
              onChange={(data) => {
                setNumber(data.number);
                setCvv(data.cvv);
                setMonth(data.month);
                setYear(data.year);
                setHolder(data.holder);
              }}/>
        </>
    );
}
export default App;

Props

PropTypeValueDescription
numberstring1234123412341234ATM Card number (PAN) (16 digits)
monthnumber1ATM Card expired month (2 digits)
yearnumber22ATM Card expired year (2 digits)
holderNamestringJohn DoeATM Card holder name
cvvstring000ATM Card cvv/cvv2 code (3 digits)
bankLogoReactNodeATM Card bank issuer data
systemstringENUMmastercard, visa, maestro, americanexpress, jcb, dinnersclub, mir
hideDigitsbooleantrue/falseHide ATM Card number
onChangefunctionreturn { cvv, holder, month, number, year }
fontFamilystringSet custom Font (as default used CREDITCARD font, see below about usage license)
numberFontSizenumberSet ATM Card number (PAN) custom font size
scalenumber0 - 1Set ATM Card scale
darkbooleantrue/falseDark mode (applied only for back side magnet)
dataColorstringhex, rgb(-a)Data text color
bgColorstringhex, rgb(-a)Background color
bgImagestringbase64/urlBackground image
liftedbooleantrue/falseElevate ATM Card

License

Component usage: MIT Licensed Copyright (c) 2020 Asset Sultanov

Keywords

component

FAQs

Package last updated on 21 Sep 2021

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