node-jsx

transparently require() jsx from node

Apache 2 13 个版本
安装
npm install node-jsx
yarn add node-jsx
pnpm add node-jsx
bun add node-jsx
README

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})

版本列表
0.13.3 2015-04-28
0.13.2 2015-04-22
0.12.4 2014-11-25
0.12.3 2014-11-24
0.12.2 2014-11-23
0.12.1 2014-11-23
0.12.0 2014-10-29
0.11.0 2014-07-18
0.10.0 2014-03-28
0.9.0 2014-02-20
0.2.1 2014-02-02
0.2.0 2013-12-25
0.1.0 2013-12-25