# @phenax/cc-number-formatter

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

Latest version **0.0.3** (published 2018-04-26) · Apache 2.0 license · 0 weekly downloads

## Install

```sh
npm install @phenax/cc-number-formatter
pnpm add @phenax/cc-number-formatter
yarn add @phenax/cc-number-formatter
bun add @phenax/cc-number-formatter
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2018-04-26 |
| First published | 2018-04-16 |
| Weekly downloads | 0 |
| License | Apache 2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 30.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Akshay Nair |
| Maintainers | phenax |

## Links

- npm: https://www.npmjs.com/package/@phenax/cc-number-formatter
- Repository: https://github.com/phenax/cc-number-formatter
- npm.io page: https://npm.io/package/@phenax/cc-number-formatter

## Recent versions

- 0.0.3 (latest) — 2018-04-26
- 0.0.2-test.2 — 2018-04-26
- 0.0.2-test.1 — 2018-04-26
- 0.0.1-test.6 — 2018-04-16
- 0.0.1-test.5 — 2018-04-16
- 0.0.1-test.4 — 2018-04-16
- 0.0.1-test.3 — 2018-04-16
- 0.0.1-test.2 — 2018-04-16
- 0.0.1-test.1 — 2018-04-16
- 0.0.1 — 2018-04-16
- 0.0.0 — 2018-04-16

## README

# 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
```js
// formatCardNumber :: String -> String
import { formatCardNumber } from '@phenax/cc-number-formatter';
```

```js
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](LICENSE) file for details


## Acknowledgments
* Extracted a few pieces out of [https://github.com/faaez/creditcardutils](CreditCardUtils)

---
_Source: https://npm.io/package/@phenax/cc-number-formatter · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
