{"id":22514746,"url":"https://github.com/cityssm/node-cpa-codes","last_synced_at":"2026-02-09T09:32:05.771Z","repository":{"id":240933817,"uuid":"802115534","full_name":"cityssm/node-cpa-codes","owner":"cityssm","description":"Lookups, validations, and utility functions for Canadian Payments Association (CPA) Standard 007 transaction and return codes.","archived":false,"fork":false,"pushed_at":"2025-01-20T13:40:42.000Z","size":304,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-21T14:55:32.992Z","etag":null,"topics":["aft","banking","canada","canadian-payments-association","cpa","eft","standard-007"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@cityssm/cpa-codes","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cityssm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-05-17T14:56:29.000Z","updated_at":"2024-12-20T16:45:30.000Z","dependencies_parsed_at":"2024-07-30T17:33:09.459Z","dependency_job_id":"4896ab67-9d4a-4d87-b8e5-0670fcc1b460","html_url":"https://github.com/cityssm/node-cpa-codes","commit_stats":null,"previous_names":["cityssm/node-cpa-codes"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/cityssm/node-cpa-codes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cityssm%2Fnode-cpa-codes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cityssm%2Fnode-cpa-codes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cityssm%2Fnode-cpa-codes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cityssm%2Fnode-cpa-codes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cityssm","download_url":"https://codeload.github.com/cityssm/node-cpa-codes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cityssm%2Fnode-cpa-codes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29260663,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T04:11:57.159Z","status":"ssl_error","status_checked_at":"2026-02-09T04:11:56.117Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aft","banking","canada","canadian-payments-association","cpa","eft","standard-007"],"created_at":"2024-12-07T03:21:15.227Z","updated_at":"2026-02-09T09:32:05.754Z","avatar_url":"https://github.com/cityssm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CPA Codes for Node\n\n[![NPM Version](https://img.shields.io/npm/v/%40cityssm%2Fcpa-codes)](https://www.npmjs.com/package/@cityssm/cpa-codes)\n[![DeepSource](https://app.deepsource.com/gh/cityssm/node-cpa-codes.svg/?label=active+issues\u0026show_trend=true\u0026token=-WoOE34nRUKoJN8e7lTQRQ1w)](https://app.deepsource.com/gh/cityssm/node-cpa-codes/)\n[![Maintainability](https://api.codeclimate.com/v1/badges/f58ba7b1bc5af08b789c/maintainability)](https://codeclimate.com/github/cityssm/node-cpa-codes/maintainability)\n[![codecov](https://codecov.io/gh/cityssm/node-cpa-codes/graph/badge.svg?token=TRMF4FQSBG)](https://codecov.io/gh/cityssm/node-cpa-codes)\n[![Coverage Testing](https://github.com/cityssm/node-cpa-codes/actions/workflows/coverage.yml/badge.svg)](https://github.com/cityssm/node-cpa-codes/actions/workflows/coverage.yml)\n\nLookups, validations, and utility functions for\n[Canadian Payments Association (CPA) Standard 007](https://www.payments.ca/sites/default/files/standard007eng.pdf)\ntransaction and return codes.\n\n## Installation\n\n```sh\nnpm install @cityssm/cpa-codes\n```\n\n## Usage\n\n```javascript\nimport * as CPA from '@cityssm/cpa-codes'\n\nconsole.log(CPA.isCPACode('200'))\n// -\u003e true\n\nconsole.log(CPA.isCPACode('abc'))\n// -\u003e false\n\nconsole.log(CPA.getCPACode('230'))\n/*\n  {\n    cpaCodeFullName: 'Pension',\n    cpaCodeAbbreviationEnglish: 'PEN',\n    cpaCodeAbbreviationFrench: 'PEN'\n  }\n*/\n\nconsole.log(CPA.getCodeCategoryByCode('300'))\n/*\n  { \n    cpaCodeMin: '300',\n    cpaCodeMax: '329',\n    cpaCodeCategory: 'Federal Government Transactions'\n  }\n*/\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcityssm%2Fnode-cpa-codes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcityssm%2Fnode-cpa-codes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcityssm%2Fnode-cpa-codes/lists"}