Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

node-jsx

0.13.3 • Public • Published

node-jsx

Transparently require() jsx from node.

Usage

require('node-jsx').install()

If you want to use a different extension, do:

require('node-jsx').install({extension: '.jsx'})

If you want to couple with an additional transform (such as CoffeeScript), do:

var coffee = require('coffee-script');
require('node-jsx').install({
  extension: '.coffee',
  additionalTransform: function(src) {
    return coffee.compile(src, {
      'bare': true
    });
  }
});

If you want to use ES6 transforms available in the JSX tool

require('node-jsx').install({harmony: true})

Keywords

none

install

npm i node-jsx

Downloadsweekly downloads

2,906

version

0.13.3

license

Apache 2

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability