ss-jsx

0.0.2 • Public • Published

JSX (JS) wrapper for SocketStream 0.3

Allows you to use JSX files (.jsx) in your SocketStream project.

Instructions

Add ss-jsx to your application's package.json file and then add this line to app.js:

ss.client.formatters.add(require('ss-jsx'));

For using JSX with another programming language that transcompiles to JavaScript pass compiler function in second parameter (example for iced-coffee-script):

ss.client.formatters.add(require('ss-jsx'), {
    additionalTransform: function (input) {
        return require('iced-coffee-script').compile(input, {'bare': true});
    }
});

Readme

Keywords

none

Package Sidebar

Install

npm i ss-jsx

Weekly Downloads

1

Version

0.0.2

License

none

Last publish

Collaborators

  • delaguardo