# babel-js-to-jsx

> JS to JSX =========

Latest version **2.0.3** (published 2015-12-22) · 0 weekly downloads

## Install

```sh
npm install babel-js-to-jsx
pnpm add babel-js-to-jsx
yarn add babel-js-to-jsx
bun add babel-js-to-jsx
```

Provides the command `js-to-jsx`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.3 |
| Published | 2015-12-22 |
| First published | 2015-11-10 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | joestanton |

## Links

- npm: https://www.npmjs.com/package/babel-js-to-jsx
- npm.io page: https://npm.io/package/babel-js-to-jsx

## Dependencies (7)

- [react](https://npm.io/package/react.md) ^0.14.2
- [babel-core](https://npm.io/package/babel-core.md) ~6.2.2
- [esformatter](https://npm.io/package/esformatter.md) ^0.8.1
- [babel-register](https://npm.io/package/babel-register.md) ^6.3.13
- [esformatter-jsx](https://npm.io/package/esformatter-jsx.md) ^2.3.9
- [babel-preset-es2015](https://npm.io/package/babel-preset-es2015.md) ^6.2.2
- [babel-plugin-syntax-jsx](https://npm.io/package/babel-plugin-syntax-jsx.md) ^6.0.14

## Recent versions

- 2.0.3 (latest) — 2015-12-22
- 2.0.2 — 2015-12-22
- 2.0.1 — 2015-11-10
- 2.0.0 — 2015-11-10

## README

JS to JSX
=========

[![Circle CI](https://circleci.com/gh/JoeStanton/babel-js-to-jsx.svg?style=svg)](https://circleci.com/gh/JoeStanton/babel-js-to-jsx)

Babel 6 plugin to convert from desugared React.DOM CallExpressions -> the equivalent JSX. Currently used to migrate to ES6+ from other compile to JS languages.

It can be used as a plugin:

```js
require("babel-core").transform(code, {
  plugins: ["js-to-jsx", "syntax-jsx"],
}).code
```

Or from the command line for composition with other tools:

```bash
npm install babel-js-to-jsx
cat example.ls | lsc -cb --no-header | js-to-jsx | esformatter -c format.json
```

---
_Source: https://npm.io/package/babel-js-to-jsx · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
