-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrm.hbs
64 lines (44 loc) · 1.67 KB
/
rm.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
[![view on npm](https://img.shields.io/npm/v/@uttori/plugin-analytics-json-file.svg)](https://www.npmjs.org/package/@uttori/plugin-analytics-json-file)
[![npm module downloads](https://img.shields.io/npm/dt/@uttori/plugin-analytics-json-file.svg)](https://www.npmjs.org/package/@uttori/plugin-analytics-json-file)
[![Build Status](https://travis-ci.com/uttori/uttori-plugin-analytics-json-file.svg?branch=master)](https://travis-ci.com/uttori/uttori-plugin-analytics-json-file)
[![Dependency Status](https://david-dm.org/uttori/uttori-plugin-analytics-json-file.svg)](https://david-dm.org/uttori/uttori-plugin-analytics-json-file)
[![Coverage Status](https://coveralls.io/repos/uttori/uttori-plugin-analytics-json-file/badge.svg?branch=master)](https://coveralls.io/r/uttori/uttori-plugin-analytics-json-file?branch=master)
# Uttori Analytics Provider - JSON File
Uttori analytics provider using JSON files on disk.
## Install
```bash
npm install --save @uttori/plugin-analytics-json-file
```
## Config
```js
{
// Registration Events
events: {
getCount: ['document-view-count'],
getPopularDocuments: ['popular-documents'],
updateDocument: ['document-save', 'document-delete'],
validateConfig: ['validate-config'],
},
// Directory files will be uploaded to.
directory: '',
// Name of the JSON file.
name: 'visits',
// File extension to use for the JSON file.
extension: 'json',
}
```
* * *
## API Reference
{{>main}}
* * *
## Tests
To run the test suite, first install the dependencies, then run `npm test`:
```bash
npm install
npm test
DEBUG=Uttori* npm test
```
## Contributors
* [Matthew Callis](https://github.com/MatthewCallis)
## License
* [MIT](LICENSE)