# generic-jsx-transpiler

> A library for creating custom JSX transpilers

Latest version **0.9.9** (published 2019-01-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install generic-jsx-transpiler
pnpm add generic-jsx-transpiler
yarn add generic-jsx-transpiler
bun add generic-jsx-transpiler
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.9.9 |
| Published | 2019-01-08 |
| First published | 2018-12-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 32.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Nik M |
| Maintainers | outstream |
| Keywords | generic, transpiler, react, jsx |

## Links

- npm: https://www.npmjs.com/package/generic-jsx-transpiler
- Repository: https://github.com/nik-m2/generic-jsx-transpiler
- Homepage: https://github.com/nik-m2/generic-jsx-transpiler#readme
- Issues: https://github.com/nik-m2/generic-jsx-transpiler/issues
- npm.io page: https://npm.io/package/generic-jsx-transpiler

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.9.9 (latest) — 2019-01-08
- 0.9.8 — 2019-01-06
- 0.9.7 — 2019-01-01
- 0.9.5 — 2018-12-31
- 0.9.4 — 2018-12-28
- 0.9.3 — 2018-12-28
- 0.9.2 — 2018-12-28
- 0.9.1 — 2018-12-28
- 0.9.0 — 2018-12-28
- 0.8.8 — 2018-12-10
- 0.8.7 — 2018-12-10
- 0.8.6 — 2018-12-10
- 0.8.5 — 2018-12-10
- 0.8.4 — 2018-12-10
- 0.8.3 — 2018-12-10
- … 3 more at https://npm.io/package/generic-jsx-transpiler/versions

## README

# generic-jsx-transpiler [![npm version](https://badge.fury.io/js/generic-jsx-transpiler.svg)](https://badge.fury.io/js/generic-jsx-transpiler) [![Build Status](https://travis-ci.org/nik-m2/generic-jsx-transpiler.svg?branch=master)](https://travis-ci.org/nik-m2/generic-jsx-transpiler)

A library for transpiling JSX for use without React. Has no dependencies.

Checkout the [webpack loader](https://www.npmjs.com/package/generic-jsx-loader)

## Setup

`npm install generic-jsx-transpiler --save-dev`

## Usage

Here is a bare bones example of API usage.
Proper usage examples can be found in the `examples` directory.

`node examples/hyperscript` to run [Hyperscript](https://www.npmjs.com/package/hyperscript) example

```
const Parser = require('generic-jsx-transpiler').Parser;

const testJsx = `const ele = <div/>`

// This will simply output '<div/>' in place of any JSX blocks
function serialize(parsedComponent){
  return `<div/>`;
};

// Our "serializer" just needs to have a 'serialize' function
const serializer = { serialize };

const parser = new Parser({ serializer });

const transpiledSource = parser.parse({
  source: "",
  // inputPath: "", // source param will override this
  // async: false, // Will return promise if true
});

console.log(transpiledSource);
```

## API

Coming soon

---
_Source: https://npm.io/package/generic-jsx-transpiler · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
