esreflect
v0.1.4
Published
ECMAScript library providing a reflection API for ECMAScript
Downloads
5
Readme
ESReflect
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.
Install
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
Usage
ESReflect uses browserify-reflection
and ESReflect
to unit tests private methods.
See the API documentation for an exhaustive list of classes and methods.
Roadmap
- Improve members extraction performances
- Support of ECMAScript 6 (EMCMA-262) classes
- Automatic accessibility change with ES7 decorators
License
Code licensed under MIT License.