{"id":21292970,"url":"https://github.com/hendrixgotcodes/refactor","last_synced_at":"2025-03-15T16:42:51.628Z","repository":{"id":134059600,"uuid":"499208321","full_name":"hendrixgotcodes/Refactor","owner":"hendrixgotcodes","description":"A light weight CLI tool designed to make developers more robust in refactoring large codebase.","archived":false,"fork":false,"pushed_at":"2022-06-13T10:23:05.000Z","size":365,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-22T06:37:15.864Z","etag":null,"topics":["cli","command-line","command-line-tool","open-source","refactoring","rename","rename-files"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/hendrixgotcodes.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":"2022-06-02T16:23:09.000Z","updated_at":"2022-07-31T10:08:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"ba2d8dc9-ba5f-4f4c-810a-393c751c6b00","html_url":"https://github.com/hendrixgotcodes/Refactor","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/hendrixgotcodes%2FRefactor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hendrixgotcodes%2FRefactor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hendrixgotcodes%2FRefactor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hendrixgotcodes%2FRefactor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hendrixgotcodes","download_url":"https://codeload.github.com/hendrixgotcodes/Refactor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243762232,"owners_count":20343972,"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":["cli","command-line","command-line-tool","open-source","refactoring","rename","rename-files"],"created_at":"2024-11-21T13:52:50.620Z","updated_at":"2025-03-15T16:42:51.607Z","avatar_url":"https://github.com/hendrixgotcodes.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **REFACTOR**\n\n\u003cimg src=\"./logo.png\" align=\"right\"\n     alt=\"Refactor-logo\" width=\"94\"  height=\"94\"\u003e\n\nA light weight CLI tool designed to make developers more robust in refactoring large codebase.\n\n- Change extensions of multiple files with just one command\n- Rename multiple files much more faster than the traditional way\n- Rename multiple directories\n\n*🧪Refactor is in it's early stages and it is strictly experimental. Your contributions and suggestions are more than welcome*\n\n## Installation\n### Using npm\nTo install this CLI using npm run; \n\u003enpm install refactor -g\n\nThis will install the CLI and make it globally available.\n\n## Commands\nThere are currently two main commands. One comes with several options which enables you two perform more sophisticated tasks.\n\n| Command | Description                    |\n| ------- | -------------------------------|\n| about   | Prints general info about the CLI unto the console |\n| rename  | This one does the magic. It takes in different arguments depending on the sort of operation you want to perform |\n| help    | Use this command whenever you forget the two other commands |\n\n\n## Usage\n\n### about\nYou can use the about command as so;\n\u003e refactor about\n\nThis general info about the CLI unto the console.\n\n### rename\nThe rename command takes the following form.\n\u003e refactor rename --[arg1] --[arg2] --[etc]\n\nThe arguments are as followed\n- --path: The path to the directory of operation. This argument is always demanded. \u003cbr/\u003e \nExample usage: \u003cbr/\u003e\n`refactor rename --path=\".\"` \u003cbr/\u003e\ntype: *string*  | required: *true*\n\u003cbr/\u003e\u003cbr/\u003e\n\n- --file: Consider this argument as toggler. Set it to true if you want to perform the operation on files, false if directories.\u003cbr/\u003e\nExample usage: \u003cbr/\u003e\n`refactor rename --path=\".\" --file=true` \u003cbr/\u003e\ntype: *string*  | required: *true*\n\u003cbr/\u003e\u003cbr/\u003e\n\n\n- fromExt: The file extension you want to change. Used alongside --toExt argument. \u003cbr/\u003e\nExample usage: \u003cbr/\u003e\n`refactor rename --path=\".\" --file=true --fromExt=\"js\" --toExt=\"ts\"` \u003cbr/\u003e\ntype: *string*  | required: *if *--file* is set to true*\n\u003cbr/\u003e\u003cbr/\u003e\n\n- toExt: The final extension you want for your files. Used alongside --fromExt argument. \u003cbr/\u003e\nExample usage: \u003cbr/\u003e\n`refactor rename --path=\".\" --file=true --fromExt=\"js\" --toExt=\"ts\"` \u003cbr/\u003e\ntype: *string*  | required: *if *--file* is set to true*\n\u003cbr/\u003e\u003cbr/\u003e\n\n- exclude: Use this argument incase you have some files you want to exclude from the operation.\u003cbr/\u003e\nExample usage: \u003cbr/\u003e\n`refactor rename --path=\".\" --file=true --fromExt=\"js\" --toExt=\"ts\" --exclude=\"a.js, b.js, c.js\"` \u003cbr/\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhendrixgotcodes%2Frefactor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhendrixgotcodes%2Frefactor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhendrixgotcodes%2Frefactor/lists"}