{"id":24799238,"url":"https://github.com/hrueger/redundancyjs","last_synced_at":"2025-03-24T22:43:23.981Z","repository":{"id":49627173,"uuid":"262741148","full_name":"hrueger/redundancyJS","owner":"hrueger","description":"A cli tool to copy code files programatically.","archived":false,"fork":false,"pushed_at":"2021-09-06T11:37:28.000Z","size":54,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-09-17T12:06:44.442Z","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/hrueger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"hrueger","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2020-05-10T08:14:31.000Z","updated_at":"2021-09-06T19:54:51.000Z","dependencies_parsed_at":"2022-09-16T21:01:56.922Z","dependency_job_id":null,"html_url":"https://github.com/hrueger/redundancyJS","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrueger%2FredundancyJS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrueger%2FredundancyJS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrueger%2FredundancyJS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrueger%2FredundancyJS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hrueger","download_url":"https://codeload.github.com/hrueger/redundancyJS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245366196,"owners_count":20603438,"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":[],"created_at":"2025-01-30T02:17:32.844Z","updated_at":"2025-03-24T22:43:23.948Z","avatar_url":"https://github.com/hrueger.png","language":"JavaScript","readme":"# RedundancyJS\n\n[![npm](https://img.shields.io/npm/v/redundancyjs)](https://npmjs.com/package/redundancyjs)\n[![License](https://img.shields.io/badge/License-MIT-blue)](./LICENSE.md)\n[![GitHub last commit](https://img.shields.io/github/last-commit/hrueger/redundancyjs?color=brightgreen)](https://github.com/hrueger/redundancyjs/commits)\n[![Maintenance](https://img.shields.io/maintenance/yes/2021)](https://github.com/hrueger/redundancyjs/commits)\n\nThis is a simple and easy to use CLI to copy code files programatically.\n\n## Usage\nCreate a file called `redundancy.json` in the root fodler of your project. It has to look like this:\n```json\n{\n    \"version\": 1,\n    \"files\": [\n        {\n            \"src\": \"AGtiv/src/app/data/ways.ts\",\n            \"dest\": \"api/src/data/\"\n        }\n    ]\n}\n```\nThen, run `npx redundancyjs`.\n\nYou can watch for changes and automatically copy the files with `npx redundancyjs --watch` or `npx redundancyjs -w`.\n\nYou can also copy multiple files:\n```json\n{\n    \"version\": 1,\n    \"files\": [{\n        \"src\": \"api/src/entity/*.ts\",\n        \"dest\": \"frontend/src/app/_models/\"\n    }]\n}\n```\n\nRemove TypeScript decorators:\n```json\n{\n    \"version\": 1,\n    \"files\": [{\n        \"src\": \"api/src/entity/*.ts\",\n        \"dest\": \"frontend/src/app/_models/\",\n        \"removeDecorators\": true\n    }]\n}\n```\n\nRemove methods:\n```json\n{\n    \"version\": 1,\n    \"files\": [{\n        \"src\": \"api/src/entity/*.ts\",\n        \"dest\": \"frontend/src/app/_models/\",\n        \"removeMethods\": [\"myMethodName\", \"anotherMethod\", \"doThis\"]\n    }]\n}\n```\n\nRemove imports:\n```json\n{\n    \"version\": 1,\n    \"files\": [{\n        \"src\": \"api/src/entity/*.ts\",\n        \"dest\": \"frontend/src/app/_models/\",\n        \"removeImports\": [\"coolPackage\", \"lodash\"]\n    }]\n}\n```\n\nChange imported types from libraries to `any`:\n```json\n{\n    \"version\": 1,\n    \"files\": [{\n        \"src\": \"api/src/entity/*.ts\",\n        \"dest\": \"frontend/src/app/_models/\",\n        \"changeInports\": [\"uncoolPackage\"]\n    }]\n}\n```\n\n## License\nMIT\n","funding_links":["https://github.com/sponsors/hrueger"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrueger%2Fredundancyjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhrueger%2Fredundancyjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrueger%2Fredundancyjs/lists"}