gaggregator
v1.1.3
Published
Google analytics data aggregator.
Downloads
2
Maintainers
Readme
gaggregator
Google analytics data aggregator.
Install
npm install gaggregator --save
Usage in Node.js
var gaggregator = require('gaggegrator');
aggregator.process({
path: './src/data-copy.csv',
callback: function (data) {
console.log(aggregator.result);
}
});
Sample output
[
{
"Browser": "Safari",
"BrowserVersion": 8,
"OperatingSystem": "iOS",
"Sessions": 437
},
{
"Browser": "InternetExplorer",
"BrowserVersion": 11,
"OperatingSystem": "Windows",
"Sessions": 389
}
]
Sample code
node ./src/sample.js
Run unit tests (one off)
npm test
Continuously run unit tests while developing
npm run test-watch
Note: to break from watch on Mac OS, use CTRL C twice.