{"id":15007695,"url":"https://github.com/blossom-babs/js-ord","last_synced_at":"2025-10-30T11:32:02.845Z","repository":{"id":40629421,"uuid":"481972904","full_name":"blossom-babs/js-ord","owner":"blossom-babs","description":"An NPM package used for doing more with less code","archived":false,"fork":false,"pushed_at":"2022-05-07T12:15:03.000Z","size":254,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T16:52:15.641Z","etag":null,"topics":["ascii","javascript","npm","npm-package","npm-scripts","npmjs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/js-ord","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/blossom-babs.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":"2022-04-15T13:47:55.000Z","updated_at":"2023-02-18T08:39:33.000Z","dependencies_parsed_at":"2022-09-08T21:51:17.951Z","dependency_job_id":null,"html_url":"https://github.com/blossom-babs/js-ord","commit_stats":null,"previous_names":["blossom-babs/ord"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blossom-babs%2Fjs-ord","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blossom-babs%2Fjs-ord/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blossom-babs%2Fjs-ord/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blossom-babs%2Fjs-ord/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blossom-babs","download_url":"https://codeload.github.com/blossom-babs/js-ord/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238960847,"owners_count":19559356,"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":["ascii","javascript","npm","npm-package","npm-scripts","npmjs"],"created_at":"2024-09-24T19:13:25.844Z","updated_at":"2025-10-30T11:32:02.840Z","avatar_url":"https://github.com/blossom-babs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [js-ord](https://www.npmjs.com/package/js-ord)\n\n\n![npm](https://img.shields.io/npm/v/js-ord)\n\n\nDo more with less code\n\n1. Convert ASCII values to alphanumeric characters\n2. Convert alphanumeric characters to ASCII\n3. Remove letters from **exact** position and return original string\n\n_Regular javascript_\n\n```\n// convert string to it's ASCII value\nstr = ((str.charCodeAt() - 'A'.charCodeAt()) + rotation) % 26\n\n// Get the alphanumeric value from ASCII\ncipher.push(String.fromCharCode('A'.charChodeAt() + str))\n\n// check if a string is uppercase\nreturn string === string.toUpperCase()\n\n// check if a string is lowercase\nreturn string === string.toLowerCase()\n```\n\n_Js-ord_\n\n```\n1. // convert string to it's ASCII value\nstr = ((ord(str) - ord('A')) + rotation) % 26\n\n---\n\n2. // Get the alphanumeric value from ASCII\ncipher.push(ordFrom(ord('A') + str))\n\n---\n\n3. // check if a string is uppercase\nreturn isUpper(string)\n\n---\n\n4. // check if a string is lowercase\nreturn isLower(string)\n\n---\n\n5. // remove string from exact position\nconst newString = shrink('Google', 2)\nconsole.log(newString) // return 0\n\nEnter the index of the letter you want to remove\n\nFunction accepts the following parameters:\n1. the string you want to modify\n2. the starting index\n3. the ending index (if you do not specify, every element from the starting index will be removed)\n\nconst aString = shrink('Bolossom', 2, 3)\nconsole.log(aString) // Boom\n\n---\n\n6. //converts string to its palindrome\nconst palindrome = isPalindrome('blossom')\nconsole.log(palindrome) // 'mossolb'\n```\n\n## Install\n\n```\nnpm install js-ord\n```\n\n## Usage\n\n```\nconst \n{ord, ordFrom, \nisUpper, isLower, \nshrink, isPalindrome} = require('js-ord')\n\nconsole.log(ord('a')) // 97\nconsole.log(ordFrom(97)) // a\n```\n\n# 🤝 Contributing\n\nContributions, issues and feature requests are welcome!\n\n## Authors\n\n🌸 **Blossom**\n\n- Github: [@blossom-babs](https://github.com/blossom-babs/)\n- LinkedIn: [Blossom Babalola](https://www.linkedin.com/in/blossom-babalola/)\n- Twitter: [@BlossomBabalola](https://twitter.com/BlossomBabalola)\n\n### Show your support\n\n- Give a ⭐ if you like this project\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblossom-babs%2Fjs-ord","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblossom-babs%2Fjs-ord","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblossom-babs%2Fjs-ord/lists"}