Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.
/ node-jsx Public archive
forked from petehunt/node-jsx

ARCHIVED - transparently require() jsx from within node

Notifications You must be signed in to change notification settings

OfficeSpace/node-jsx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

ARCHIVED - transparently require() jsx from within node

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%