
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.
JSX postprocessor to support various environments.
JavaScript is an infrastructure language for many environments (like SQL, Lua, Visual Basic etc...). Each environment uses a different code structure and assumptions because JavaScript doesn't have a standard module system or entry points.
This program converts the resulting code of JSX into the environment specific code.
You can select the output format with -t option. This tool supports the following output formats:
Add exports or define statements. export-global exports classes to global namespace. The classes that have an __export__ qualifier are exported.
__export__ class Fib {
static function calc(value : int) : int {
// some code;
}
}
var Fib = require('fib').Fib;
Fib.calc(value);
It supports config parameter, entry point function (main), and callback funcion for updating (onUpdate):
class _Main
{
static const config = {
name: 'sencha-touch-app',
icon: {
'57': 'resources/icons/Icon.png',
'72': 'resources/icons/Icon~ipad.png',
'114': 'resources/icons/Icon@2x.png',
'144': 'resources/icons/Icon~ipad@2x.png'
},
isIconPrecomposed: true,
startupImage: {
'320x460': 'resources/startup/320x460.jpg',
'640x920': 'resources/startup/640x920.png',
'768x1004': 'resources/startup/768x1004.png',
'748x1024': 'resources/startup/748x1024.png',
'1536x2008': 'resources/startup/1536x2008.png',
'1496x2048': 'resources/startup/1496x2048.png'
},
requires: [
'Ext.MessageBox'
],
views: [] : string[]
};
static function main (argv : string[]) : void
{
// Destroy the #appLoadingIndicator element
Ext.fly('appLoadingIndicator').destroy();
// Initialize the main view
var view = new MainView();
Ext.Viewport.add(view as Ext.Component);
}
static function onUpdate () : void
{
Ext.Msg.confirm(
"Application Update",
"This application has just successfully been updated to the latest version. Reload now?",
(buttonId, value, opt) -> {
if (buttonId == 'yes') {
dom.window.location.reload();
}
}
);
}
}
import "js/web.jsx";
import "webworker.jsx";
class _Main
{
static function main(argv : string[]) : void
{
// called when this worker is initialized
}
__export static function onmessage(event : MessageEvent) : void
{
// called when `postMessage` is called from main script
self.postMessage("message");
}
}
import "ngcore.jsx";
class _Main
{
static var game : Game;
static var hud : DebugControl;
static function main (argv : string[]) : void
{
var glView = new UI.GLView();
glView.setOpenGLESVersion(UI.Commands.OpenGLESVersion.OpenGLES2);
var w = Core.Capabilities.getScreenWidth();
var h = Core.Capabilities.getScreenHeight();
glView.onload = function() {
_Main.hud = new DebugControl(glView);
Core.UpdateEmitter.setTickRate(1/60);
_Main.game = new Game();
_Main.game.start();
};
glView.setAttribute('frame', [0, 0, w, h]);
glView.setAttribute('active', true);
}
}
$ npm install -g jsx-linker
$ jsx-linker [option] [inputjsfile]
-t templateName, --tempalte=templateName
Select template name. You can see all possible template names on the help description.
-s, --stdin
Read source code from standard input.
-o, --output
Output file name. If this option is not specified, it dumps resulting code to standard output.
-h, `--help``
Display help
$ jsx --minify sample-class.jsx | jsx-linker -s -t nodejs-lib > sample-nodelib.js
$ jsx-linker -s -t nodejs-lib -o sample-nodelib.js sample.js
$ jsx-linker --help
$ grunt test
# Build application or library for JS project
$ grunt build
# Generate API reference
$ grunt doc
MIT
Complete license is written in LICENSE.md.
FAQs
JSX postprocessor to support various environment
We found that jsx-linker 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.