# @ltd/j-ts

> Pure transpiler for TypeScript. Belong to "Plan J".／TypeScript 纯转译工具。从属于“简计划”。

Latest version **10.2.0** (published 2022-09-15) · LGPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install @ltd/j-ts
pnpm add @ltd/j-ts
yarn add @ltd/j-ts
bun add @ltd/j-ts
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 10.2.0 |
| Published | 2022-09-15 |
| First published | 2019-03-22 |
| Weekly downloads | 0 |
| License | LGPL-3.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 268.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | 龙腾道 |
| Maintainers | ltd |
| Keywords | TypeScript, TS, TSX |

## Links

- npm: https://www.npmjs.com/package/@ltd/j-ts
- Repository: https://github.com/LongTengDao/j-ts
- Homepage: https://github.com/LongTengDao/j-ts#readme
- Issues: https://GitHub.com/LongTengDao/j-ts/issues
- npm.io page: https://npm.io/package/@ltd/j-ts

## Dependencies (1)

- [typescript](https://npm.io/package/typescript.md) 4.8.3

## Alternatives

- [@sapphire/ratelimits](https://npm.io/package/@sapphire/ratelimits.md) — 4.4K weekly downloads
- [js-csvparser](https://npm.io/package/js-csvparser.md) — 2.0K weekly downloads
- [@adadapted/js-sdk](https://npm.io/package/@adadapted/js-sdk.md) — 251 weekly downloads
- [@grapecity/spread-sheets-sparklines](https://npm.io/package/@grapecity/spread-sheets-sparklines.md) — 103 weekly downloads
- [@1selfworld/adchain-sdk-react-native](https://npm.io/package/@1selfworld/adchain-sdk-react-native.md) — 80 weekly downloads

## Recent versions

- 10.2.0 (latest) — 2022-09-15
- 10.1.0 — 2021-11-18
- 10.0.0 — 2021-10-23
- 9.0.3 — 2021-10-22
- 9.0.2 — 2021-10-22
- 9.0.1 — 2021-10-22
- 9.0.0 — 2021-10-22
- 8.0.0 — 2021-10-22
- 7.1.0 — 2021-10-19
- 7.0.0 — 2021-10-18
- 6.3.1 — 2021-10-08
- 6.3.0 — 2021-09-01
- 6.2.5 — 2021-03-20
- 6.2.4 — 2021-03-18
- 6.2.3 — 2021-02-10
- … 32 more at https://npm.io/package/@ltd/j-ts/versions

## README

`@ltd/j-ts`
===========

```shell
npm install @ltd/j-ts
```

`@ltd/j-ts` vs `typescript`
---------------------------

### `input.ts`

```TypeScript
	type T = any;
	
	function * f (v :T) :T {
		return <T> v as T;
	}
	
```

### `require('@ltd/j-ts')(input :string, jsx :( (name :string, context :object) => string ) | boolean = false, fileName? :string)`

```JavaScript
	             
	
	function * f (v   )    {
		return     v     ;
	}
	
```

(The error thrown for `input` will have a `index :number` property.)  
（对 `input` 抛出的错误，会带上 `index :number` 属性。）  

### `require('typescript').transpileModule(input :string, options :object).outputText`

```JavaScript
function* f(v) {
    return v;
}
```

`typescript` ko `@ltd/j-ts`
---------------------------

|                                                                       | `typescript` | `@ltd/j-ts`  |              <kbd>Alt</kbd>               |
|-----------------------------------------------------------------------|:------------:|:------------:|-------------------------------------------|
| `public` / `protected` / `private` / `readonly` constructor parameter |      ✓      |      ✗      | ECMAScript class field                    |
| `enum $ { }` / `namespace $ { }` / `module $ { }`                     |      ✓      |      ✗      | `import * as $ from '';`                  |
| `import $ = require('');`                                             |      ✓      |      ✗      | `var $ :typeof import('') = require('');` |
| `export = $;`                                                         |      ✓      |      ✗      | `module.exports = $;`                     |
| `@$`                                                                  |      ✓      |      ✗      | wait ECMAScript decorator proposal        |

`@ltd/j-ts` ko `typescript`
---------------------------

|                                 | `@ltd/j-ts`  | `typescript` |          <kbd>Alt</kbd>              |
|---------------------------------|:------------:|:------------:|--------------------------------------|
| `let v :T = /*#__PURE__*/ f();` |      ✓      |      ✗      | `let v :T =`<br>`/*#__PURE__*/ f();` |

---
_Source: https://npm.io/package/@ltd/j-ts · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
