{"id":18522513,"url":"https://github.com/sajjadmrx/best-string","last_synced_at":"2025-04-09T11:30:54.465Z","repository":{"id":56737024,"uuid":"524391756","full_name":"sajjadmrx/best-string","owner":"sajjadmrx","description":"A package to manipulate string.","archived":false,"fork":false,"pushed_at":"2022-08-13T12:56:06.000Z","size":25,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T05:05:09.030Z","etag":null,"topics":["javascript","regex","rtl","string","string-manager","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/sajjadmrx.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-08-13T12:21:15.000Z","updated_at":"2024-04-25T16:08:55.000Z","dependencies_parsed_at":"2022-08-16T01:00:26.609Z","dependency_job_id":null,"html_url":"https://github.com/sajjadmrx/best-string","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sajjadmrx%2Fbest-string","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sajjadmrx%2Fbest-string/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sajjadmrx%2Fbest-string/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sajjadmrx%2Fbest-string/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sajjadmrx","download_url":"https://codeload.github.com/sajjadmrx/best-string/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248031063,"owners_count":21036325,"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","regex","rtl","string","string-manager","typescript"],"created_at":"2024-11-06T17:31:37.112Z","updated_at":"2025-04-09T11:30:53.896Z","avatar_url":"https://github.com/sajjadmrx.png","language":"TypeScript","readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/sajjadmrx/best-string\" target=\"blank\"\u003e\n        \u003cimg src=\"https://cdn.discordapp.com/attachments/980899740784951387/1007988372284915864/New_Project.png\" width=\"500\" alt=\"Best-string Logo\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\n  \u003ch1 align=\"center\"\u003e \n        \u003chr\u003e\n  \u003c/h1\u003e   \n\u003ch3 align=\"center\"\u003e\nA package to manipulate string.\n\u003c/h3\u003e\n\n## Instalation\n\nuse this command to installation\n\n```\nnpm install best-string\n```\n\n## imports\n\n```\nimport BestString from 'best-string' //or require\n```\n\n# Usage\n\n```ts\nimport BestString from \"best-string\";\n\nconst my_text = new BestString('Hello \u003cscript\u003ealert(\"TEST\")\u003c/script\u003e').noScriptTag().build()\nconsole.log(my_text) //Result:  'Hello'\n\nconst text = new BestString('Hi چطوری؟').noRtlCharacters().build();\nconsole.log(text) //Result:  'Hi'\n\nconst user = 'Jack'\nconst message = new BestString('welcome {user}! your role is ROLE!,your nickname is {user}')\n    .replaceGlobal('{user}', user)\n    .replaceGlobal('ROLE', 'ADMIN')\n    .build()\nconsole.log(message) //Result: welcome Jack! your role is ADMIN!,your nickname is Jack\n```\n\n## TODO\n\n- add Methods","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsajjadmrx%2Fbest-string","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsajjadmrx%2Fbest-string","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsajjadmrx%2Fbest-string/lists"}