jsx-recast
Compiles JavaScript written using JSX to use JavaScript-compatible syntax. For example, this:
<X prop=false><Y /></X>
compiles to this:
;
Install
$ npm install jsx-recast
Usage
$ node> var jsx = > jsx "code": ... "map": ... > jsxjsAst
Browserify
Browserify support is built in.
$ npm install jsx-recast # install local dependency
$ browserify -t jsx-recast $file
Setup
First, install the development dependencies:
$ npm install
Then, try running the tests:
$ npm test