{"id":23257209,"url":"https://github.com/iknowjavascript/string-class","last_synced_at":"2025-04-06T04:42:20.279Z","repository":{"id":44143573,"uuid":"185188195","full_name":"iKnowJavaScript/string-class","owner":"iKnowJavaScript","description":"Extending the String class in Javascript using Prototype Oriented Programming.","archived":false,"fork":false,"pushed_at":"2023-01-03T21:42:08.000Z","size":569,"stargazers_count":1,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T02:12:07.995Z","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":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iKnowJavaScript.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-06T12:01:20.000Z","updated_at":"2019-07-23T12:50:31.000Z","dependencies_parsed_at":"2023-02-01T10:15:43.830Z","dependency_job_id":null,"html_url":"https://github.com/iKnowJavaScript/string-class","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/iKnowJavaScript%2Fstring-class","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iKnowJavaScript%2Fstring-class/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iKnowJavaScript%2Fstring-class/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iKnowJavaScript%2Fstring-class/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iKnowJavaScript","download_url":"https://codeload.github.com/iKnowJavaScript/string-class/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247436139,"owners_count":20938532,"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-12-19T12:27:20.278Z","updated_at":"2025-04-06T04:42:20.170Z","avatar_url":"https://github.com/iKnowJavaScript.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# String-Class\n\n[![CircleCI](https://circleci.com/gh/iKnowJavaScript/string-class/tree/master.svg?style=svg)](https://circleci.com/gh/iKnowJavaScript/string-class/tree/master)\n\nExtending the String class in Javascript using Prototype Oriented Programming.\n\n## methods added:\n\n| Methods                          | Description                                                                                   | Examples                                                |\n| -------------------------------- | --------------------------------------------------------------------------------------------- | ------------------------------------------------------- |\n| String.prototype.hasVowels       | check for vowels (aeiou) in a string and returns `true` of `false`                            | \"good\".hasVowels() returns `true`                       |\n| String.prototype.isQuestion      | Checks is a string is a valid question nd returns `true` of `false`                           | \"to be or not to be?\".isQuestion() returns `true`       |\n| String.prototype.toUpper         | Convert a lowercase string to uppercase without using inbuild uppercase method                | \"github\".toUpper() returns \"GITHUB\"                     |\n| String.prototype.toLower         | Convert an uppercase string to lowercase                                                      | \"GITHUB\".toLower() returns \"github\"                     |\n| String.prototype.ucFirst         | Convert the first character in a string to uppercase                                          | \"i am groot\".ucFirst() returns \"I am groot\"             |\n| String.prototype.words           | Used to split the words of a string into an array                                             | \"life is good\".words() returns [\"life\",\"is\",\"good\"]     |\n| String.prototype.wordCount       | Returns the number of words in the string                                                     | \"groot is good\".wordCount() returns 3                   |\n| String.prototype.inverseCase     | Used to inverse the character case in a string                                                | \"grOOt\".inverseCase() returns \"GRooT\"                   |\n| String.prototype.isDigit         | Used to identify single digits                                                                | \"2\".isDigit() returns true                              |\n| String.prototype.alternatingCase | used to alternate the character case in a string with the first character as always lowercase | \"Onomatopoeia\".alternatingCase() returns \"oNoMaToPoEiA\" |\n| String.prototype.numberToWord    | used to convert numbers in a string to their equivalent in words                              | \"325\".numberToWord() returns \"three two five\"           |\n| String.prototype.fromCurrency    | used to convert currency strings to numbers equivalent                                        | \"11,111.11\".fromCurrency() returns 11111.11             |\n| String.prototype.toCurrency      | used to convert Strings to currency equivalent                                                | \"1000\".toCurrency() returns \"1,000\"                     |\n\n## Testing\n\nJest was used to test every functionality of this Project.\n\nFeel free to clone and `npm init` to get the feel of the app and `npm test` before adding more functionality if you wish.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiknowjavascript%2Fstring-class","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiknowjavascript%2Fstring-class","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiknowjavascript%2Fstring-class/lists"}