@phenax/cc-number-formatter
A library that allows you to format credit and debit card numbers
Last updated a year ago by phenax .
Apache 2.0 · Repository · Original npm · Tarball · package.json
$ cnpm install @phenax/cc-number-formatter 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.0.3                                ...           latest (a year ago)

11 Versions

  • 0.0.3                                ...           a year ago
  • 0.0.2-test.2                                ...           a year ago
  • 0.0.2-test.1                                ...           a year ago
  • 0.0.1-test.6                                ...           a year ago
  • 0.0.1-test.5                                ...           a year ago
  • 0.0.1-test.4                                ...           a year ago
  • 0.0.1-test.3                                ...           a year ago
  • 0.0.1-test.2                                ...           a year ago
  • 0.0.1-test.1                                ...           a year ago
  • 0.0.1                                ...           a year ago
  • 0.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 2
This Month 5
Last Day 2
Last Week 2
Last Month 12
Dependencies (0)
None
Dev Dependencies (6)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |