{"id":18552424,"url":"https://github.com/andrejewski/ascii-codes","last_synced_at":"2025-05-15T11:12:49.271Z","repository":{"id":29903810,"uuid":"33449513","full_name":"andrejewski/ascii-codes","owner":"andrejewski","description":"ASCII table reference and lookup functions","archived":false,"fork":false,"pushed_at":"2015-04-05T18:32:27.000Z","size":132,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-26T12:04:46.825Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"htmlacademy-javascript/491137-kekstagram","license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrejewski.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":"2015-04-05T17:50:28.000Z","updated_at":"2019-03-28T16:38:21.000Z","dependencies_parsed_at":"2022-09-15T22:31:48.972Z","dependency_job_id":null,"html_url":"https://github.com/andrejewski/ascii-codes","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/andrejewski%2Fascii-codes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrejewski%2Fascii-codes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrejewski%2Fascii-codes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrejewski%2Fascii-codes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrejewski","download_url":"https://codeload.github.com/andrejewski/ascii-codes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254328389,"owners_count":22052633,"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":[],"created_at":"2024-11-06T21:14:10.764Z","updated_at":"2025-05-15T11:12:44.259Z","avatar_url":"https://github.com/andrejewski.png","language":"JavaScript","readme":"# ascii-codes\n\nASCII table reference and lookup functions\n\n```bash\nnpm install ascii-codes\n```\n\n## Usage\n\n```js\nvar ascii = require('ascii-codes');\nvar assert = require('assert');\n\nassert.equal(\"A\", ascii.symbolForDecimal(65));\nassert.equal(\"A\", ascii.symbolForHex(\"41\"));\nassert.equal(\"A\", ascii.symbolForOctal(\"101\"));\n\nassert.equal(65, ascii.decimalForSymbol(\"A\"));\nassert.equal(\"41\", ascii.hexForSymbol(\"A\"));\nassert.equal(\"101\", ascii.octalForSymbol(\"A\"));\n\n/*\n\tNote: You can write number literals in hex and octal. Use symbolForDecimal() for those.\n*/\nassert.equal(\"A\", ascii.symbolForDecimal(0x41));\nassert.equal(\"A\", ascii.symbolForDecimal(0101));\n```\n\n## Documentation\n\n```\nascii-codes\n    symbolForDecimal(Number) String\n\t\treturns the symbol for a given decimal \n    symbolForHex(String) String\n\t\treturns the symbol for a given hexidecimal string \n    symbolForOctal(String) String\n\t\treturns the symbol for a given octal string \n    decimalForSymbol(String) Number\n\t\treturns the decimal for a given symbol \n    hexForSymbol(String) String\n\t\treturns the hexidecimal string for a given symbol \n    octalForSymbol(String) String\n\t\treturns the octal string for a given symbol \n    symbolIndex Array[String]\n\t\tcontains the table of ASCII codes \n```\n\n## Contributing\n\nIssues and pull requests are welcome.\n\n```bash\n# running tests\nnpm test\n```\n\nFollow me on [Twitter](https://twitter.com/compooter) for updates or just for the lolz and please check out my other [repositories](https://github.com/andrejewski) if I have earned it. I thank you for reading.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrejewski%2Fascii-codes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrejewski%2Fascii-codes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrejewski%2Fascii-codes/lists"}