ji

javascript-insights

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

Showing:

Popularity

Downloads/wk

0

GitHub Stars

0

Maintenance

Last Commit

4yrs ago

Contributors

1

Package

Dependencies

0

Size (min+gzip)

2.3KB

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

javascript-insights

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

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

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100