# jsx4express

> Express middleware to transform jsx to js at request time

Latest version **0.1.0** (published 2015-10-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install jsx4express
pnpm add jsx4express
yarn add jsx4express
bun add jsx4express
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2015-10-10 |
| First published | 2015-03-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Matt Lorey |
| Maintainers | onbing |
| Keywords | express, jsx, middleware, react, transform |

## Links

- npm: https://www.npmjs.com/package/jsx4express
- Repository: https://github.com/yanbingbing/jsx4express
- Issues: https://github.com/yanbingbing/jsx4express/issues
- npm.io page: https://npm.io/package/jsx4express

## Dependencies (1)

- [babel-core](https://npm.io/package/babel-core.md) ~5.8.25

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2015-10-10
- 0.0.6 — 2015-09-07
- 0.0.5 — 2015-09-07
- 0.0.4 — 2015-08-28
- 0.0.3 — 2015-08-28
- 0.0.2 — 2015-03-06
- 0.0.1 — 2015-03-06

## README

# jsx4express

Fork form [express-jsx](https://github.com/mattlorey/express-jsx), make a litte change.

Express middleware that transforms jsx to js at request time.

Request the .js file and jsx4express will check for a matching filename with a
.jsx extension and transform it to .js.

## Installation

    npm install jsx4express

## Example usage

```javascript
var express = require('express');
var jsxCompile = require('jsx4express');
...
var app = express();
...
app.use(jsxCompile(path.join(__dirname, 'public')));
app.use(express.static(path.join(__dirname, 'public')));
...

```
```html
<script type="text/javascript" src="/path/to/.js"></script>
```

## License

MIT -- see the `LICENCE` file for details

## History

* 0.1.0

use babel to replace react-tool.

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