Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

gaggregator

1.1.3 • Public • Published

gaggregator

wercker status

NPM

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.

Install

npm i gaggregator

DownloadsWeekly Downloads

1

Version

1.1.3

License

MIT

Last publish

Collaborators

  • avatar