Package Exports
- masked-credit-card-number
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (masked-credit-card-number) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Masked Credit Card Number
Masked Credit Card Number is a JavaScript library for hide part of credit cards that come from a string or object
Installation
Use the package manager npm to install masked-credit-card-number.
npm i masked-credit-card-number
Usage
import * as masked from "masked-credit-card-number";
masked("1111-2222-3333-4444");
// returns '****-****-****-4444'
masked({
firtsCreditCard: "1111-2222-3333-4444",
SecondCreditCard: "4444 4444 4444 1111"
});
// returns {firtsCreditCard: "****-****-****-4444", SecondCreditCard:"**** **** **** 1111"}
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.