{"library":"creditcards","type":"library","category":null,"description":"The `creditcards` package provides a suite of utility methods for parsing, formatting, and validating credit card numbers, CVCs, and expiration dates. Currently at version 5.0.0, it offers a robust solution for handling common payment-related data operations in applications. While no explicit release cadence is stated, the package is actively maintained and ships with TypeScript types, promoting type safety and improved developer experience. A key differentiator is its modular design, allowing developers to import specific functionalities like `card` or `expiration` individually, and the ability to inject custom card types via the `withTypes` function or by importing individual modules from `creditcards-types` to extend supported card schemas beyond the defaults. It targets modern Node.js environments (>= 18).","language":"javascript","status":"active","version":"5.0.0","tags":["javascript","credit","cards","validation","formatting","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install creditcards","imports":["import { card } from 'creditcards';","import { cvc } from 'creditcards';","import { expiration } from 'creditcards';","import Card from 'creditcards/card';"]},{"cmd":"yarn add creditcards","imports":[]},{"cmd":"pnpm add creditcards","imports":[]}],"homepage":null,"github":"https://github.com/bendrucker/creditcards","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/creditcards","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/creditcards/compatibility"}}