https://github.com/goto-bus-stop/babel-plugin-transform-phonetize
babel plugin to rename identifiers in a file to randomly generated pronounceable names
https://github.com/goto-bus-stop/babel-plugin-transform-phonetize
babel babel-plugin beautify identifiers phonetic rename unminify
Last synced: 3 months ago
JSON representation
babel plugin to rename identifiers in a file to randomly generated pronounceable names
- Host: GitHub
- URL: https://github.com/goto-bus-stop/babel-plugin-transform-phonetize
- Owner: goto-bus-stop
- License: other
- Created: 2018-06-26T14:30:57.000Z (about 7 years ago)
- Default Branch: default
- Last Pushed: 2022-04-26T13:24:36.000Z (about 3 years ago)
- Last Synced: 2025-03-29T03:05:32.604Z (3 months ago)
- Topics: babel, babel-plugin, beautify, identifiers, phonetic, rename, unminify
- Language: JavaScript
- Size: 8.79 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# babel-plugin-transform-phonetize
babel plugin to rename identifiers in a file to randomly generated pronounceable names
Useful for deobfuscation.
[![npm][npm-image]][npm-url]
[![travis][travis-image]][travis-url]
[![standard][standard-image]][standard-url][npm-image]: https://img.shields.io/npm/v/babel-plugin-transform-phonetize.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/babel-plugin-transform-phonetize
[travis-image]: https://img.shields.io/travis/goto-bus-stop/babel-plugin-transform-phonetize.svg?style=flat-square
[travis-url]: https://travis-ci.org/goto-bus-stop/babel-plugin-transform-phonetize
[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square
[standard-url]: http://npm.im/standard## Install
```
npm install babel-plugin-transform-phonetize
```## Usage
```json
{
"plugins": [
["transform-phonetize", {
"maxLength": 4,
"except": ["idx"]
}]
]
}
```## Options
* `maxLength` - Maximum length of the original identifier name. Only names shorter than this length will be renamed.
This way variables that already have meaningful names will not be touched. Defaults to `3`.
* `except` - Array of identifier names not to rename.## License
[Apache-2.0](LICENSE.md)