{"id":19265486,"url":"https://github.com/sbeator/replace-and-excute","last_synced_at":"2025-09-09T00:37:56.167Z","repository":{"id":72911724,"uuid":"91465587","full_name":"SBeator/replace-and-excute","owner":"SBeator","description":"A extension to help replace some string and excute some method base on the string","archived":false,"fork":false,"pushed_at":"2017-05-19T12:31:39.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-03T00:06:19.111Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/SBeator.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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":"2017-05-16T14:06:54.000Z","updated_at":"2017-05-16T14:07:22.000Z","dependencies_parsed_at":"2023-05-26T01:15:36.358Z","dependency_job_id":null,"html_url":"https://github.com/SBeator/replace-and-excute","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SBeator/replace-and-excute","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SBeator%2Freplace-and-excute","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SBeator%2Freplace-and-excute/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SBeator%2Freplace-and-excute/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SBeator%2Freplace-and-excute/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SBeator","download_url":"https://codeload.github.com/SBeator/replace-and-excute/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SBeator%2Freplace-and-excute/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274231097,"owners_count":25245687,"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-09-08T02:00:09.813Z","response_time":121,"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-11-09T19:46:12.224Z","updated_at":"2025-09-09T00:37:56.148Z","avatar_url":"https://github.com/SBeator.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# replace-and-excute README\n\nThis is an extension to help replace some string and excute some method base on the string\n\n\n## Commands\n`Replace number and excute`  \n\nReplace the selected number with the string which is excuted.  \nNote: before you run this command, please override this default setting with your own setting:  \n`\"replace-and-excute.replace-number-and-excute-string\": \"${number - 1}\"`  \nYou can set it as an template which have some excutable js in the ${} blocks:\n- Add some string and math the number:  \n    `${number / 2}px` : `20` -\u003e `10px`\n- Add more than one excutable blocks:  \n    `${number} * ${number}` : `100` -\u003e `100 * 100`\n- Some complex logic:  \n    `${['a','b','c'].join(number)}` : `0` -\u003e `a0b0c`\n#### Keybindings\n`Alt+C`\n\n`Replace string and excute`  \n\nReplace the selected string with excuted script's return result.  \nNote: before you run this command, please override this default setting with your own setting:  \n`  \"replace-and-excute.replace-string-and-excute-method\": \"(x) =\u003e x + x\"`  \nYou must set a method here, the parameter is the string you selected, and please return the replaced string by your method.\n#### Keybindings\n`Alt+V`\n\n## Release Notes\n\nUsers appreciate release notes as you update your extension.\n\n### 0.0.1\n\nInitial release of a testing version  \nAdd `Replace number and excute` command\n\n## 0.0.2\n\nAdd `Replace string and excute` command\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbeator%2Freplace-and-excute","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsbeator%2Freplace-and-excute","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbeator%2Freplace-and-excute/lists"}