
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
express-jsxtransform
Advanced tools
Middleware that compiles jsx on-the-fly. Intended to be used in a
development setting with the express.static middleware, but should
work with any middleware further down the stack, even an http proxy.
The response will be rewritten under these circumstances:
.js extension and has the
/** @jsx ... */ annotation on the first line..jsx extension. In this case
the annotation is optional.jsxtranform plays nice with conditional GET. If the original response
has an ETag, jsxtransform will add to it so the ETag of the compiled
response never clashes with the original ETag. That prevents the
middleware issuing the original response from being confused into
sending a false positive 304 Not Modified if jsxtransform is turned
off or removed from the stack later.
Make sure you have node.js and npm installed, then run:
npm install express-jsxtransform
var express = require('express'),
jsxtransform = require('express-jsxtransform'),
root = '/path/to/my/static/files';
express.createServer()
.use(jsxtransform())
.use(express.static(root))
.listen(1337);
3-clause BSD license -- see the LICENSE file for details.
This module is heavily based on the work of Andreas Lind Petersen (@papandreou) in his module express-compiless.
FAQs
Express middleware that transforms jsx on the way out.
The npm package express-jsxtransform receives a total of 13 weekly downloads. As such, express-jsxtransform popularity was classified as not popular.
We found that express-jsxtransform demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.