{"id":13533287,"url":"https://github.com/jsdf/cjsx-codemod","last_synced_at":"2025-07-14T15:07:28.127Z","repository":{"id":66018859,"uuid":"69847615","full_name":"jsdf/cjsx-codemod","owner":"jsdf","description":"A codemod for migrating off of coffee-react CJSX","archived":false,"fork":false,"pushed_at":"2016-10-03T06:56:48.000Z","size":5,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-07T13:17:39.164Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/jsdf.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-03T06:56:36.000Z","updated_at":"2023-03-04T20:52:31.000Z","dependencies_parsed_at":"2023-04-26T04:03:54.342Z","dependency_job_id":null,"html_url":"https://github.com/jsdf/cjsx-codemod","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jsdf/cjsx-codemod","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsdf%2Fcjsx-codemod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsdf%2Fcjsx-codemod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsdf%2Fcjsx-codemod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsdf%2Fcjsx-codemod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsdf","download_url":"https://codeload.github.com/jsdf/cjsx-codemod/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsdf%2Fcjsx-codemod/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265311871,"owners_count":23745161,"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":"2024-08-01T07:01:18.366Z","updated_at":"2025-07-14T15:07:28.117Z","avatar_url":"https://github.com/jsdf.png","language":"JavaScript","funding_links":[],"categories":["Frameworks"],"sub_categories":["React.js"],"readme":"# cjsx-codemod\n\nA codemod for migrating off [coffee-react](https://github.com/jsdf/coffee-react-transform) CJSX\n\n## Usage\n\nInstall it:\n\n```\nnpm install -g cjsx-codemod\n```\n\nPrint command line options:\n\n```\ncjsx-codemod\n```\n\nRun the codemod on a directory tree of CJSX code:\n\n```\ncjsx-codemod ./my-app\n```\n\nConvert to using some custom DSL instead of `React.createElement`:\n```\ncjsx-codemod --jsx-import='myDSL = require \"my-dsl\"' --jsx-expression='`myDSL(${ELEMENT}, ${ARGS})`' ./my-app\n```\n\nConvert to using [teact](https://www.npmjs.com/package/teact):\n```\ncjsx-codemod  --jsx-import='{crel} = require \"teact\"' --jsx-expression='`crel(${ELEMENT}, ${ARGS})`' ./my-app\n```\n\nBased on [jscodeshift](https://github.com/facebook/jscodeshift)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsdf%2Fcjsx-codemod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsdf%2Fcjsx-codemod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsdf%2Fcjsx-codemod/lists"}