{"id":22871519,"url":"https://github.com/opensly/sly-altercode","last_synced_at":"2025-03-31T11:41:05.284Z","repository":{"id":240257726,"uuid":"801851851","full_name":"opensly/sly-altercode","owner":"opensly","description":"Altercode is a node based CLI toolkit to assist you with code shift.","archived":false,"fork":false,"pushed_at":"2024-11-09T02:42:41.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-06T17:11:41.917Z","etag":null,"topics":["codeshift","jscodeshift"],"latest_commit_sha":null,"homepage":"","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/opensly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"custom":["https://www.paypal.com/paypalme/LakshmikanthV"]}},"created_at":"2024-05-17T03:26:07.000Z","updated_at":"2024-11-09T02:42:44.000Z","dependencies_parsed_at":"2025-02-06T17:11:29.475Z","dependency_job_id":"dcc9e83f-29eb-4dfa-9246-f414ade0487e","html_url":"https://github.com/opensly/sly-altercode","commit_stats":null,"previous_names":["opensly/sly-altercode"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensly%2Fsly-altercode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensly%2Fsly-altercode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensly%2Fsly-altercode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensly%2Fsly-altercode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opensly","download_url":"https://codeload.github.com/opensly/sly-altercode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246465216,"owners_count":20781914,"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":["codeshift","jscodeshift"],"created_at":"2024-12-13T13:19:38.202Z","updated_at":"2025-03-31T11:41:05.265Z","avatar_url":"https://github.com/opensly.png","language":"JavaScript","funding_links":["https://www.paypal.com/paypalme/LakshmikanthV"],"categories":[],"sub_categories":[],"readme":"# Altercode\n\nAltercode is a simple node based CLI tool/library to assist you with large-scale code shift that can be partially automated but still require human oversight and occasional intervention. Altercode is completely open source and free to use.\n\n## Usage\n\nInstall the package as a  with the below command\n```\nnpm i sly-altercode --save-dev\n```\n\nCreate a config file named `altercode.config.json` at the root level of your repository.\n```\n{\n  \"sourceDir\": \"./src/app\",\n  \"excludeExtns\": [\".test.ts\", \".enum.ts\", \".constants.ts\", ...]\n  \"mutations\": [\n    { \n      \"searchString\": \"page-wrapper\", \n      \"replaceWith\": \"page-container\" \n    },\n    { \n      \"searchString\": \"...\", \n      \"replaceWith\": \"...\" \n    },\n    ...\n  ]\n}\n```\n\nAdd the below command in the scripts of your package.json\n```\n\"scripts\": {\n  \"assist\": \"altercode --config altercode.config.json\"\n}\n```\n\nYou're all set. Now run the assist command to process your code shift tasks\n``` \nnpm run assist\n```\n## License\nThis project is licensed under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopensly%2Fsly-altercode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopensly%2Fsly-altercode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopensly%2Fsly-altercode/lists"}