Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jsx-transform

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsx-transform - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

6

package.json
{
"name": "jsx-transform",
"version": "0.4.0",
"version": "0.5.0",
"description": "JSX transpiler. Desugar JSX into JavaScript. A standard and configurable implementation of JSX decoupled from React.",

@@ -29,8 +29,8 @@ "main": "index.js",

"dependencies": {
"jstransform": "^5.0.0"
"jstransform": "^8.2.0"
},
"devDependencies": {
"expect.js": "^0.3.1",
"mocha": "^1.20.1"
"mocha": "^2.0.1"
}
}

@@ -1,7 +0,3 @@

# jsx-transform
# jsx-transform [![Build Status](http://img.shields.io/travis/alexmingoia/jsx-transform.svg?style=flat)](http://travis-ci.org/alexmingoia/jsx-transform) [![NPM version](http://img.shields.io/npm/v/jsx-transform.svg?style=flat)](https://npmjs.org/package/jsx-transform) [![Dependency Status](http://img.shields.io/david/alexmingoia/jsx-transform.svg?style=flat)](http://david-dm.org/alexmingoia/jsx-transform)
[![Build Status](https://secure.travis-ci.org/alexmingoia/jsx-transform.png)](http://travis-ci.org/alexmingoia/jsx-transform)
[![NPM version](https://badge.fury.io/js/jsx-transform.png)](http://badge.fury.io/js/jsx-transform)
[![Dependency Status](https://david-dm.org/alexmingoia/jsx-transform.png)](http://david-dm.org/alexmingoia/jsx-transform)
JSX transpiler. Desugar JSX into JavaScript.

@@ -12,2 +8,4 @@

For linting files containing JSX see [JSXHint][1].
## Installation

@@ -66,2 +64,13 @@

```javascript
/** @jsx React.createElement */
<div>Hello World</div>
```
is desugared to
```javascript
React.createElement("div", null, ["Hello World"]);
```
### Expressions

@@ -90,8 +99,2 @@

### React and JSX
React's transform has a slightly different API, treating tag names as method
names instead of arguments. Equivelant behavior can be achieved in
`jsx-transform` by setting `options.tagMethods` to `true`.
## API

@@ -117,1 +120,4 @@

## BSD Licensed
[0]: https://github.com/facebook/react/
[1]: https://github.com/STRML/JSXHint/
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc