New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

illenium-jsx

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

illenium-jsx

A custom JSX/TSX to JS/TS compiler without the huge dependency list

1.0.1
unpublished
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

UnJSX

Simple JSX/TSX converter to use in your custom built UI framework.

Usage
import { JsxToJsConverter,TsxToTsConverter } from 'illenium-jsx';

// Convert JavaScript
JsxToJsConverter('scripts/example-jsx.jsx').then((transformed) => {
    console.log(transformed);
});

// Convert TypeScript
TsxToTsConverter('scripts/example-tsx.tsx').then((transformed) => {
    console.log(transformed);
});

There's really nothing much to this, just transforms code from one format to another. I've also exported the tokenizer, so you can use the tokenizer for analysis of any other js/ts code.

import { Tokenizer } from 'illenium-jsx';

console.log(Tokenizer.Parse('console.log(message)'));

FAQs

Package last updated on 13 Jan 2024

Did you know?

Socket

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.

Install

Related posts