{"id":27114529,"url":"https://github.com/dwjft/ebcdic-parser","last_synced_at":"2025-04-07T03:57:59.191Z","repository":{"id":57219046,"uuid":"164469752","full_name":"dwjft/ebcdic-parser","owner":"dwjft","description":"parse ebcdic numbers","archived":false,"fork":false,"pushed_at":"2019-01-07T21:19:03.000Z","size":30,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-18T14:03:38.006Z","etag":null,"topics":["ebcdic","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/dwjft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-07T17:51:08.000Z","updated_at":"2024-03-04T05:08:37.000Z","dependencies_parsed_at":"2022-08-29T02:11:49.990Z","dependency_job_id":null,"html_url":"https://github.com/dwjft/ebcdic-parser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwjft%2Febcdic-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwjft%2Febcdic-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwjft%2Febcdic-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwjft%2Febcdic-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dwjft","download_url":"https://codeload.github.com/dwjft/ebcdic-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247589778,"owners_count":20963022,"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":["ebcdic","parser"],"created_at":"2025-04-07T03:57:58.623Z","updated_at":"2025-04-07T03:57:59.189Z","avatar_url":"https://github.com/dwjft.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EBCDIC Number Parser\n\nThis is a really simple package built for parsing EBCDIC \"Zoned Decimal\" numbers.\n\n## Installation\n\n    npm i --save ebcdic-parser\n\n## Usage\n\n```typescript\nimport { parse } from 'ebcdic-parser';\n\nconst result = parse('0001529B', 2); // string, decimal places (default 2)\nconsole.log(result);\n// output: 152.92\n```\n\n## Map\n\n```js\nconst chars = {\n  negative: ['}', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R'],\n  positive: ['{', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I'],\n};\n```\n\nThe index of a char is the number it represents. For example, `J` is equal to `-1`.\n\nIf the char is not found, the char provided will be returned. Commonly, that would be `1` in place of `A`.\n\n## Examples\n\nSee `./src/index.test.ts`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwjft%2Febcdic-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdwjft%2Febcdic-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwjft%2Febcdic-parser/lists"}