examine-instance
examine-instance inspects an object and its prototype and catalogues the properties and methods. Categorises methods as private if they are prefixed or suffixed by an underscore, otherwise marks as public.
Installation
npm install examine-instance -S
Usage
; { this_property1 = ""; this_isGood = true; } { return this_isGood; } { return this_property1; } { this_property1 = value; } { return value; } { return value; } const instance = ;const result = ; /*{ methods: [ 'method1', 'method2_' ], privateMethods: [ 'method2_' ], publicMethods: [ 'method1' ], attributes: [ '_property1', '_isGood' ], readOnly: [ 'isGood' ], readWrite: [ 'property1' ], writeOnly: []} */