1.0.9 • Published 6 years ago

javascript-insights v1.0.9

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

javascript-insights

Javascript Insights will try to override all Javascript pure functions and properties that it can and count their usage.

:construction: It is still under construction, more powerful features to come... :construction:

Installation

npm i javascript-insights

Usage

var javascriptInsights = require('javascript-insights');

javascriptInsights.setObjectName(javascriptInsights, 'javascriptInsights');
javascriptInsights.start();

var arr = [0];
arr.push(1);
arr.push(2);

var res = javascriptInsights.getInsights();

console.log(JSON.stringify(res, null, '\t'));

// the output:
//{
//        "overrider": {
//                "Array": {
//                        "push": 2
//                },
//               "javascriptInsights": {
//                        "getInsights": 1
//                },
//                "JSON": {
//                        "stringify": 1
//                }
//        }
//}

API

start(modules)

Accepts array of modules to override.

The default are all the existing modules in Node.js, include your required modules.

getInsights()

Returns the insights data.

setObjectName(obj, name)

Set the module name for modules that it can't decode.

Contact info

If you encounter any issues or you have any questions, you are more then welcome to contact me sidanmor@gmail.com

npm

License

MIT

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago