{"id":15788195,"url":"https://github.com/joellefkowitz/nationwide","last_synced_at":"2026-01-26T04:32:21.542Z","repository":{"id":117722549,"uuid":"397333559","full_name":"JoelLefkowitz/nationwide","owner":"JoelLefkowitz","description":"A Nationwide transactions table parser.","archived":false,"fork":false,"pushed_at":"2024-06-27T19:29:09.000Z","size":312,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-05T21:41:30.180Z","etag":null,"topics":["nationwide","parser"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/JoelLefkowitz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-17T17:07:22.000Z","updated_at":"2024-06-27T19:29:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"fa94ad6b-50d4-4073-978b-1153a30edab3","html_url":"https://github.com/JoelLefkowitz/nationwide","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoelLefkowitz%2Fnationwide","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoelLefkowitz%2Fnationwide/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoelLefkowitz%2Fnationwide/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoelLefkowitz%2Fnationwide/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JoelLefkowitz","download_url":"https://codeload.github.com/JoelLefkowitz/nationwide/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239535152,"owners_count":19654986,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["nationwide","parser"],"created_at":"2024-10-04T21:41:20.846Z","updated_at":"2026-01-26T04:32:21.537Z","avatar_url":"https://github.com/JoelLefkowitz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nationwide\n\nA Nationwide transactions table parser.\n\n![Review](https://img.shields.io/github/actions/workflow/status/JoelLefkowitz/nationwide/review.yaml)\n![Version](https://img.shields.io/npm/v/nationwide)\n![Downloads](https://img.shields.io/npm/dw/nationwide)\n![Size](https://img.shields.io/bundlephobia/min/nationwide)\n![Quality](https://img.shields.io/codacy/grade/8fb4d0f0694748c188e083f00ae4ff9f)\n![Coverage](https://img.shields.io/codacy/coverage/8fb4d0f0694748c188e083f00ae4ff9f)\n\n## Installing\n\n```bash\nnpm install nationwide\n```\n\n## Documentation\n\nDocumentation and more detailed examples are hosted on [Github Pages](https://joellefkowitz.github.io/nationwide).\n\n## Usage\n\nCopy the Nationwide statement table from the browser:\n\n`nationwide.html`\n\n```html\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\n        01 May 2023\n        \u003cdiv style=\"display: none\"\u003e- 1\u003c/div\u003e\n      \u003c/td\u003e\n      \u003ctd\u003eVisa purchase\u003c/td\u003e\n      \u003ctd\u003eUBER *TRIP HELP.UBER.COM GB\u003c/td\u003e\n      \u003ctd class=\"currency\"\u003e£5.00\u003c/td\u003e\n      \u003ctd class=\"currency\"\u003e\u003c/td\u003e\n      \u003ctd class=\"amountCell currency\"\u003e£55.00\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\n        02 May 2023\n        \u003cdiv style=\"display: none\"\u003e- 2\u003c/div\u003e\n      \u003c/td\u003e\n      \u003ctd\u003eVisa purchase\u003c/td\u003e\n      \u003ctd\u003eUBER *TRIP HELP.UBER.COM GB\u003c/td\u003e\n      \u003ctd class=\"currency\"\u003e£5.00\u003c/td\u003e\n      \u003ctd class=\"currency\"\u003e\u003c/td\u003e\n      \u003ctd class=\"amountCell currency\"\u003e£50.00\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\n        03 May 2023\n        \u003cdiv style=\"display: none\"\u003e- 3\u003c/div\u003e\n      \u003c/td\u003e\n      \u003ctd\u003eVisa purchase\u003c/td\u003e\n      \u003ctd\u003eUBER *TRIP HELP.UBER.COM FR\u003c/td\u003e\n      \u003ctd class=\"currency\"\u003e£20.00\u003c/td\u003e\n      \u003ctd class=\"currency\"\u003e\u003c/td\u003e\n      \u003ctd class=\"amountCell currency\"\u003e£30.00\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n```\n\nParse the table:\n\n```ts\nimport fs from \"fs\";\nimport path from \"path\";\nimport { Transaction } from \"./Transaction\";\n\nconst transactions = Transaction.table(fs.readFileSync(path.join(__dirname, \"nationwide.html\"), \"utf8\"));\n```\n\n```json\n[\n  {\n    \"date\": \"2023-01-01\",\n    \"type\": \"Visa purchase\",\n    \"account\": \"UBER *TRIP HELP.UBER.COM GB\",\n    \"change\": -5,\n    \"balance\": 55\n  },\n  {\n    \"date\": \"2023-01-02\",\n    \"type\": \"Visa purchase\",\n    \"account\": \"UBER *TRIP HELP.UBER.COM GB\",\n    \"change\": -5,\n    \"balance\": 50\n  },\n  {\n    \"date\": \"2023-01-03\",\n    \"type\": \"Visa purchase\",\n    \"account\": \"UBER *TRIP HELP.UBER.COM FR\",\n    \"change\": -20,\n    \"balance\": 30\n  }\n]\n```\n\nCollate the transactions:\n\n```ts\nTransaction.collate(transactions);\n```\n\n```json\n{\n  \"UBER *TRIP HELP.UBER.COM FR\": -20,\n  \"UBER *TRIP HELP.UBER.COM GB\": -10\n}\n```\n\n## Tooling\n\n### Dependencies\n\nTo install dependencies:\n\n```bash\nyarn install\n```\n\n### Tests\n\nTo run tests:\n\n```bash\nyarn test\n```\n\n### Documentation\n\nTo generate the documentation locally:\n\n```bash\nyarn docs\n```\n\n### Linters\n\nTo run linters:\n\n```bash\nyarn lint\n```\n\n### Formatters\n\nTo run formatters:\n\n```bash\nyarn format\n```\n\n## Contributing\n\nPlease read this repository's [Code of Conduct](CODE_OF_CONDUCT.md) which outlines our collaboration standards and the [Changelog](CHANGELOG.md) for details on breaking changes that have been made.\n\nThis repository adheres to semantic versioning standards. For more information on semantic versioning visit [SemVer](https://semver.org).\n\nBump2version is used to version and tag changes. For example:\n\n```bash\nbump2version patch\n```\n\n### Contributors\n\n- [Joel Lefkowitz](https://github.com/joellefkowitz) - Initial work\n\n## Remarks\n\nLots of love to the open source community!\n\n\u003cdiv align='center'\u003e\n    \u003cimg width=200 height=200 src='https://media.giphy.com/media/osAcIGTSyeovPq6Xph/giphy.gif' alt='Be kind to your mind' /\u003e\n    \u003cimg width=200 height=200 src='https://media.giphy.com/media/KEAAbQ5clGWJwuJuZB/giphy.gif' alt='Love each other' /\u003e\n    \u003cimg width=200 height=200 src='https://media.giphy.com/media/WRWykrFkxJA6JJuTvc/giphy.gif' alt=\"It's ok to have a bad day\" /\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoellefkowitz%2Fnationwide","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoellefkowitz%2Fnationwide","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoellefkowitz%2Fnationwide/lists"}