Skip to content

Express middleware to transform jsx to js at request time

License

Notifications You must be signed in to change notification settings

jackwanders/express-jsx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

express-jsx

Express middleware that transforms jsx to js at request time.

Request the .js file and express-jsx will check for a matching filename with a .jsx extension and transform it to .js. If a .js file already exists, it will update it if the modified time is greater on the .jsx file.

Installation

npm install express-jsx

Example usage

var express = require('express');
...
var app = express();
...
app.use(jsxCompile(path.join(__dirname, 'public')));
...
<script type="text/javascript" src="/path/to/.js"></script>

License

MIT -- see the LICENCE file for details

About

Express middleware to transform jsx to js at request time

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published