# typescript-transformer-rename-private

> TypeScript transformer to rename private properties and methods to allow mangling

Latest version **1.0.2** (published 2023-03-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install typescript-transformer-rename-private
pnpm add typescript-transformer-rename-private
yarn add typescript-transformer-rename-private
bun add typescript-transformer-rename-private
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2023-03-06 |
| First published | 2022-03-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 28.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | ictrobot |
| Maintainers | ictrobot |
| Keywords | typescript, transformer, rename, private properties, private methods, mangle |

## Links

- npm: https://www.npmjs.com/package/typescript-transformer-rename-private
- Repository: https://github.com/ictrobot/typescript-transformer-rename-private
- Homepage: https://github.com/ictrobot/typescript-transformer-rename-private#readme
- Issues: https://github.com/ictrobot/typescript-transformer-rename-private/issues
- npm.io page: https://npm.io/package/typescript-transformer-rename-private

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2023-03-06
- 1.0.1 — 2022-03-25
- 1.0.0 — 2022-03-24

## README

typescript-transformer-rename-private
===

A simple TypeScript transformer to rename private properties and methods to allow mangling by a minifier.
See `example/` for example usage with [ttypescript](https://www.npmjs.com/package/ttypescript) and
[Rollup](https://www.npmjs.com/package/rollup) with [terser](https://www.npmjs.com/package/terser).

Supports:
- Dot property accessors
- Bracket notation, where the property name is a string literal, or a constant with string literal type.
- Destructing assignment, including nesting, renaming properties, and providing defaults
- A custom private property prefix (default `__private_`) provided using transformer options, or a custom rename function

Does NOT support arbitrary indexing into the object. If you find any other unsupported syntax, please open an issue.

[MIT License](/LICENSE)

---
_Source: https://npm.io/package/typescript-transformer-rename-private · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
