# ts-bigint-transform-jsbi

> ```ts import { CompileFactory } from "ts-bigint-transform-jsbi"; import * as ts from "typescript";

Latest version **0.6.3** (published 2019-11-07) · 0 weekly downloads

## Install

```sh
npm install ts-bigint-transform-jsbi
pnpm add ts-bigint-transform-jsbi
yarn add ts-bigint-transform-jsbi
bun add ts-bigint-transform-jsbi
```

## Health

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

Positive: has types; no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.6.3 |
| Published | 2019-11-07 |
| First published | 2019-08-12 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 22.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | gaubee |

## Links

- npm: https://www.npmjs.com/package/ts-bigint-transform-jsbi
- Repository: https://github.com/Gaubee/ts-bigint-transform-jsbi
- Homepage: https://github.com/Gaubee/ts-bigint-transform-jsbi#readme
- Issues: https://github.com/Gaubee/ts-bigint-transform-jsbi/issues
- npm.io page: https://npm.io/package/ts-bigint-transform-jsbi

## Dependencies (1)

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

## Recent versions

- 0.6.3 (latest) — 2019-11-07
- 0.6.2 — 2019-09-14
- 0.6.0 — 2019-09-14
- 0.5.0 — 2019-08-15
- 0.4.3 — 2019-08-14
- 0.4.2 — 2019-08-14
- 0.4.1 — 2019-08-14
- 0.4.0 — 2019-08-14
- 0.3.3 — 2019-08-13
- 0.3.2 — 2019-08-13
- 0.3.1 — 2019-08-13
- 0.3.0 — 2019-08-13
- 0.2.2 — 2019-08-12
- 0.2.1 — 2019-08-12
- 0.2.0 — 2019-08-12
- … 1 more at https://npm.io/package/ts-bigint-transform-jsbi/versions

## README

# ts-bigint-transform-jsbi

## How To Use

```ts
import { CompileFactory } from "ts-bigint-transform-jsbi";
import * as ts from "typescript";

const compile = CompileFactory({
  IMPORT_HEADER: `const JSBI = require('jsbi');\nconst BigInt = JSBI.BigInt;\n`
});
compile(process.argv.slice(2), {
  noEmitOnError: true,
  noImplicitAny: true,
  target: ts.ScriptTarget.ESNext,
  module: ts.ModuleKind.CommonJS,
  outDir: "./build"
});
```

## Custom Compile

you can get an `transformer` to transform code when emit program.
and get the transform count in every source file.

```ts
import { TransformerFactory } from "ts-bigint-transform-jsbi";
const { transformer, bigintTransformCount } = TransformerFactory(
  (<ts.Program>program).getTypeChecker(),
  { JSBI_GLOBAL_SYMBOL_NAME: "JSBI" }
);

const c: WeakMap<ts.SourceFile, number> = bigintTransformCount;
const t: ts.TransformerFactory<ts.SourceFile> = transformer;
```

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