UNPKG

card-validator

Version:

A library for validating credit card fields

48 lines (47 loc) 1.3 kB
{ "name": "card-validator", "version": "10.0.4", "description": "A library for validating credit card fields", "main": "dist/index.js", "types": "dist/index.d.ts", "repository": { "type": "git", "url": "git@github.com:braintree/card-validator" }, "homepage": "https://github.com/braintree/card-validator", "scripts": { "prepublishOnly": "npm run build", "prebuild": "prettier --write .", "build": "tsc --declaration", "lint": "eslint --ext js,ts .", "posttest": "npm run lint", "test": "jest" }, "author": "Braintree <code@getbraintree.com> (https://www.braintreepayments.com/)", "license": "MIT", "devDependencies": { "@types/jest": "^30.0.0", "@types/node": "^25.0.3", "@typescript-eslint/eslint-plugin": "^5.54.1", "eslint": "^8.57.1", "eslint-config-braintree": "^6.0.0-typescript-prep-rc.2", "eslint-plugin-prettier": "^5.0.0", "jest": "^30.2.0", "jest-environment-jsdom": "^30.2.0", "prettier": "^3.7.4", "ts-jest": "^29.4.6", "typescript": "^5.9.3" }, "dependencies": { "credit-card-type": "^10.1.0" }, "jest": { "testEnvironment": "jsdom", "preset": "ts-jest", "globals": { "ts-jest": { "tsconfig": "src/__tests__/tsconfig.json" } } } }