open-index/open-npm huggingface dataset:
npm package: @mlx/ga
Description: Fetch structured data from Google Analytics
Author: Minko Gechev
Latest version: 0.0.20

# GA

Allows you to fetch data from Google analytics. Combined with `@mlx/parser` you can aggregate the route information and map it to your application's parametrized routes:

```ts
const { fetch } = require('@mlx/ga');
const { parseRoutes, ProjectType } = require('@mlx/parser');
const { writeFileSync } = require('fs');

const key = require('./credentials.json');
const viewId = '000000000';

const applicationRoutes = parseRoutes('tsconfig.app.json', ProjectType.Angular);

fetch({
  key,
  viewId,
  period: {
    startDate: new Date('2016-1-1'),
    endDate: new Date('2018-2-24')
  },
  formatter: r => r.replace('/app', ''),
  routes: applicationRoutes.map(f => f.path)
}).then(g => {
  writeFileSync('data.json', JSON.stringify(g, null, 2));
});
```

For more details visit [https://github.com/mgechev/mlx](https://github.com/mgechev/mlx).

## License

MIT
npm package: @mlxb/coolkit
Description: Handy JavaScript/TypeScript helpers
Author: MoneyLxB, LLC.
Latest version: 0.1.0

# @mlxb/coolkit

[![npm](https://img.shields.io/npm/v/@mlxb/coolkit)](https://www.npmjs.com/package/@mlxb/coolkit)
[![issues](https://img.shields.io/github/issues/moneylxb/coolkit)](https://github.com/moneylxb/coolkit/issues)
[![license](https://img.shields.io/github/license/moneylxb/coolkit)](https://github.com/moneylxb/coolkit/blob/master/LICENSE.md)

## About

Handy JavaScript/TypeScript helpers.

## License

Licensed under the [MIT](https://github.com/moneylxb/coolkit/blob/master/LICENSE.md) license.