https://github.com/arthurmco/demangler-js
C++ name demangler written in javascript
https://github.com/arthurmco/demangler-js
cpp demangler javascript-library
Last synced: 5 months ago
JSON representation
C++ name demangler written in javascript
- Host: GitHub
- URL: https://github.com/arthurmco/demangler-js
- Owner: arthurmco
- License: mit
- Created: 2018-06-12T07:33:13.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-03-03T08:43:56.000Z (over 3 years ago)
- Last Synced: 2025-10-11T05:42:40.780Z (8 months ago)
- Topics: cpp, demangler, javascript-library
- Language: JavaScript
- Size: 53.7 KB
- Stars: 10
- Watchers: 1
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# demangler-js


A C++ name demangler written in pure Javascript code
For now, it only demangles C++ functions generated from GCC and
Clang. MSVC will be supported soon, though.
You can also add support to your compiler (see below). And it doesn't
even need to be C++!
## Usage
```js
const demangler = require('demangler-js');
const fname = demangler.demangle("_Z23this_function_is_a_testi");
console.log(fname);
// prints 'this_function_is_a_test(int)'
```
Since neither the variable names or the result type are encoded in the
mangled string, it is not known, and it will print only the types of
the parameters.
## Roadmap
- Support operators
- Support Visual C++
- Maybe support other languages, like Rust or Go.
## License
MIT license.