{"id":15357790,"url":"https://github.com/mefengl/string-no-repeat","last_synced_at":"2025-08-27T07:11:45.891Z","repository":{"id":185333942,"uuid":"673385523","full_name":"mefengl/string-no-repeat","owner":"mefengl","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-01T14:59:07.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-25T07:21:22.601Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mefengl.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-01T14:01:24.000Z","updated_at":"2023-08-01T14:22:35.000Z","dependencies_parsed_at":"2024-10-30T10:15:10.412Z","dependency_job_id":"40bec068-9ecb-4f65-a5e7-f6d7c85b2a50","html_url":"https://github.com/mefengl/string-no-repeat","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"ae21fa27a2418b6fb89567095ba60dba6cf84ee7"},"previous_names":["mefengl/string-no-repeat"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mefengl/string-no-repeat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mefengl%2Fstring-no-repeat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mefengl%2Fstring-no-repeat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mefengl%2Fstring-no-repeat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mefengl%2Fstring-no-repeat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mefengl","download_url":"https://codeload.github.com/mefengl/string-no-repeat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mefengl%2Fstring-no-repeat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272302909,"owners_count":24910292,"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","status":"online","status_checked_at":"2025-08-27T02:00:09.397Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-01T12:38:58.842Z","updated_at":"2025-08-27T07:11:45.854Z","avatar_url":"https://github.com/mefengl.png","language":"JavaScript","readme":"# string-no-repeat\n\n## Description\nA package that removes excess duplicate parts from a text string based on the count provided.\n\n## Installation\n\n```sh\nnpm install string-no-repeat\n```\n\n## Usage\n\nThe main function exported by this package is `removeDuplicateParts(text, duplicatesToKeep)`.\n\nHere's a basic example:\n\n```javascript\nconst { removeDuplicateParts } = require('string-no-repeat');\n\nconst str = \"Woo! Woo! Woo! Woo! Woo!\";\nconst result = removeDuplicateParts(str, 2);\n\nconsole.log(result);\n// Outputs: \"Woo! Woo!\"\n```\n\nIn this example, the function reduces the count of \"Woo!\" in the string to only two instances.\n\n## Tests\n\nTo run the test suite for `string-no-repeat`, use the command:\n\n```sh\nnpm test\n```\n\nA test file is provided (`test.js`). Here is an example test:\n\n```javascript\nconst { removeDuplicateParts } = require('./dist/index.js');\n\nconst text = 'Woo! Woo! Woo! Woo! Woo! Again! Woo! Woo! Woo! Woo!';\nconst result = removeDuplicateParts(text, 2);\nconsole.log(result);  // Outputs: \"Woo! Woo! Again! Woo! Woo!\"\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmefengl%2Fstring-no-repeat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmefengl%2Fstring-no-repeat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmefengl%2Fstring-no-repeat/lists"}