ESReflect is an ECMAScript (also popularly known as JavaScript) library providing a reflection API for ECMAScript. ESReflect uses esprima and escodegen to parse and generate code accodring to the Mozilla's Parser API.
The easiest way is to install esreflect
as dependency
:
npm install esreflect --save
You may also be interested in:
- karma-reflection: a karma preprocessor providing reflection to source files before testing
- browserify-reflection: a browserify transform providing reflection to source files before parsing
ESReflect uses browserify-reflection
and ESReflect
to unit tests private methods.
See the API documentation for an exhaustive list of classes and methods.
- Improve members extraction performances
- Support of ECMAScript 6 (EMCMA-262) classes
- Automatic accessibility change with ES7 decorators
Code licensed under MIT License.