package
A codemod for migrating off [coffee-react](https://github.com/jsdf/coffee-react-transform) CJSX
npm install cjsx-codemodGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
A codemod for migrating off coffee-react CJSX
Install it:
npm install -g cjsx-codemodPrint command line options:
cjsx-codemodRun the codemod on a directory tree of CJSX code:
cjsx-codemod ./my-appConvert to using some custom DSL instead of React.createElement:
cjsx-codemod --jsx-import='myDSL = require "my-dsl"' --jsx-expression='`myDSL(${ELEMENT}, ${ARGS})`' ./my-appConvert to using teact:
cjsx-codemod --jsx-import='{crel} = require "teact"' --jsx-expression='`crel(${ELEMENT}, ${ARGS})`' ./my-appBased on jscodeshift
Estimated unpacked size across 57 packages.
9.7 MB
Includes dependencies.
3 direct · 1 outdated