https://github.com/cheatoid/ts-plugins
General-purpose TypeScript plugins/transformers
https://github.com/cheatoid/ts-plugins
extensions plugins transformers typescript
Last synced: 2 months ago
JSON representation
General-purpose TypeScript plugins/transformers
- Host: GitHub
- URL: https://github.com/cheatoid/ts-plugins
- Owner: Cheatoid
- License: mit
- Created: 2023-03-14T20:07:03.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-21T19:27:07.000Z (over 3 years ago)
- Last Synced: 2025-03-09T05:39:15.852Z (over 1 year ago)
- Topics: extensions, plugins, transformers, typescript
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@cheatoid/ts-plugins
- Size: 45.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TS Plugins
[](https://www.npmjs.com/package/@cheatoid/ts-plugins)
General-purpose [TypeScript](https://github.com/microsoft/TypeScript) plugins/transformers.
## 🛠Installation
Get the latest package from npm:
```shell
npm install -D @cheatoid/ts-plugins
# or
yarn add -D @cheatoid/ts-plugins
```
## ✨ Features
Note: Each feature works on opt-in basis.
Modify your `tsconfig.json` (replace the `INSERT-TRANSFORM-NAME` accordingly):
```json
{
"compilerOptions": {
"plugins": [
{ "transform": "@cheatoid/ts-plugins/INSERT-TRANSFORM-NAME.js" },
]
}
}
```
### ***Constant Folding***
`{ "transform": "@cheatoid/ts-plugins/constant-folding.js" }`
See [Wikipedia](https://en.wikipedia.org/wiki/Constant_folding) for explanation.
#### Additional Options
`evaluateMath`: Set to `true` to enable `Math` library evaluation (when possible).