Socket
Socket
Sign inDemoInstall

@phenax/cc-number-formatter

Package Overview
Dependencies
0
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @phenax/cc-number-formatter

A library that allows you to format credit and debit card numbers


Version published
Weekly downloads
163
decreased by-24.19%
Maintainers
1
Install size
30.2 kB
Created
Weekly downloads
 

Readme

Source

Card number Formatter

Formats the card number

Getting Started

Installing

Install this library as a dependency in your project

yarn add @phenax/cc-number-formatter

OR

npm i @phenax/cc-number-formatter --save

Usage

Import format function into your project

// formatCardNumber :: String -> String
import { formatCardNumber } from '@phenax/cc-number-formatter';
const formattedNumber = formatCardNumber('4111111111111111'); // 4111 1111 1111 1111

Running the tests

  • Clone this repository to your local machine
  • Run yarn test

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details

Acknowledgments

FAQs

Last updated on 26 Apr 2018

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc