{"id":28417393,"url":"https://github.com/devathul-88/string-dooku","last_synced_at":"2026-05-04T12:37:19.998Z","repository":{"id":57372383,"uuid":"463245808","full_name":"DevAthul-88/String-Dooku","owner":"DevAthul-88","description":"A tiny npm package to perform basic string methods","archived":false,"fork":false,"pushed_at":"2022-02-25T11:36:31.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-04T10:53:22.190Z","etag":null,"topics":["javascript","node","nodejs","npm","package","string","strings-manipulation"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/string-dooku","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/DevAthul-88.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":"2022-02-24T17:46:08.000Z","updated_at":"2022-02-25T11:31:43.000Z","dependencies_parsed_at":"2022-09-14T15:30:35.700Z","dependency_job_id":null,"html_url":"https://github.com/DevAthul-88/String-Dooku","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/DevAthul-88/String-Dooku","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevAthul-88%2FString-Dooku","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevAthul-88%2FString-Dooku/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevAthul-88%2FString-Dooku/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevAthul-88%2FString-Dooku/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevAthul-88","download_url":"https://codeload.github.com/DevAthul-88/String-Dooku/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevAthul-88%2FString-Dooku/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261994139,"owners_count":23241942,"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":["javascript","node","nodejs","npm","package","string","strings-manipulation"],"created_at":"2025-06-04T05:13:20.954Z","updated_at":"2026-05-04T12:37:19.967Z","avatar_url":"https://github.com/DevAthul-88.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# String-Dooku\nA tiny npm package to perform basic string methods\n\n\u003ch2\u003eIt's so easy to get started with this package. Follow the steps below\u003c/h2\u003e\n\n```javascript\n\n// import the package \nconst str = require(\"string-dooku\")\n\n// create a new instance of the function\nconst ins = new str()\n\n// change string case to upper\nconsole.log(ins.toUpperCase(\"hello world\")) // output: -\u003e HELLO WORLD\n\n// reverse a string\nconsole.log(ins.reverse(\"Hello World\")) // output -\u003e dlroW olleH\n\n// check substring -- we need to pass two parameters so this function will check the first argument of the function same as the second one then it will return a boolean value\nconsole.log(ins.checkSubstring(\"app\" , \"app\")) // output -\u003e true\n\n// duplication count\nconsole.log(app.duplicationCount(\"Hello World\")); // output -\u003e { H: 1, e: 1, l: 4, o: 2, ' ': 1, W: 1, r: 1, d: 1 }\n\n```\n\u003ch2\u003eAnd there are so many other function methods\u003c/h2\u003e\n\n\n```javascript\n\n// import the package \nconst str = require(\"string-dooku\")\n\n// create a new instance of the function\nconst ins = new str()\n\n// change case to UpperCase\nconsole.log(ins.toUpperCase(\"Hello World\")) // output -\u003e HELLO WORLD\n\n// change case to lowercase\nconsole.log(ins.toLowerCase(\"Hello World\")) // output -\u003e hello world\n\n// change the case to pascal case\nconsole.log(ins.toPascalCase(\"Hello World\")) // output -\u003e HelloWorld\n\n// change the case to snake case\nconsole.log(ins.toSnakeCase(\"Hello World\")) // output -\u003e hello_world\n\n// change the case to dot case\nconsole.log(ins.toDotCase(\"Hello World\")) // output -\u003e hello.world\n\n// change the case to space case\nconsole.log(ins.toSpaceCase(\"Hello World\")) // output -\u003e H e l l o   W o r l d\n\n// change the case to title case\nconsole.log(ins.toTitleCase(\"hello world\")) // output -\u003e Hello World\n\n// get the total length of the string\nconsole.log(ins.length(\"Hello World\")) // output -\u003e 11\n\n// check the if first argument is same as the second argument\nconsole.log(ins.checkValue(\"Hello\" , \"Hello\")) // output -\u003e true\n\n// duplication count of the each word in the string\nconsole.log(app.duplicationCount(\"Hello World\")); // output -\u003e { H: 1, e: 1, l: 4, o: 2, ' ': 1, W: 1, r: 1, d: 1 }\n\n// reverse a string\nconsole.log(ins.reverse(\"Hello World\")) // output -\u003e dlroW olleH\n\n// its is same as checkValue. both function check if the first argument is same as the second argument\nconsole.log(ins.checkSubstring(\"app\" , \"app\")) // output -\u003e true\n\n// check the longest string\nconsole.log(ins.longestWord(\"Hello World\")) // output -\u003e Hello\n\n// convert to string\nconsole.log(typeof ins.toString([1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ])); // output -\u003e string\n\n// convert to string into a array\nconsole.log(ins.toArray(\"Hello World\")); // output -\u003e [ 'Hello', 'World' ]\n\n// to returns the character from the specified index.\nconsole.log(ins.characterAt(\"Hello World\" , 2); // output -\u003e l\n\n// this function determines whether a string ends with the characters of a specified string, returning true or false as appropriate.\nconsole.log(ins.endsWith(\"Hello World\" , \"World\")); // output -\u003e true\n\n```\n## Contributing\n\n### Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.\n\n1. Fork the Project\n2. Create your Feature Branch (git checkout -b feature/string-dooku)\n3. Commit your changes (git commit -am 'First commit')\n4. Push to the branch (git push origin feature/string-dooku)\n5. Create a new Pull Request\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevathul-88%2Fstring-dooku","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevathul-88%2Fstring-dooku","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevathul-88%2Fstring-dooku/lists"}