{"id":36545138,"url":"https://github.com/uttori/uttori-plugin-analytics-json-file","last_synced_at":"2026-01-12T05:59:43.153Z","repository":{"id":40729095,"uuid":"202827852","full_name":"uttori/uttori-plugin-analytics-json-file","owner":"uttori","description":"Analytics provider for Uttori that uses JSON files.","archived":false,"fork":false,"pushed_at":"2023-01-07T08:47:45.000Z","size":1637,"stargazers_count":0,"open_issues_count":15,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-26T18:38:00.186Z","etag":null,"topics":["analytics","json-files","uttori"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uttori.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-17T02:59:20.000Z","updated_at":"2020-12-31T21:04:09.000Z","dependencies_parsed_at":"2023-02-06T17:16:33.627Z","dependency_job_id":null,"html_url":"https://github.com/uttori/uttori-plugin-analytics-json-file","commit_stats":null,"previous_names":["uttori/uttori-analytics-provider-json-file"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/uttori/uttori-plugin-analytics-json-file","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uttori%2Futtori-plugin-analytics-json-file","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uttori%2Futtori-plugin-analytics-json-file/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uttori%2Futtori-plugin-analytics-json-file/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uttori%2Futtori-plugin-analytics-json-file/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uttori","download_url":"https://codeload.github.com/uttori/uttori-plugin-analytics-json-file/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uttori%2Futtori-plugin-analytics-json-file/sbom","scorecard":{"id":913199,"data":{"date":"2025-08-11","repo":{"name":"github.com/uttori/uttori-plugin-analytics-json-file","commit":"475c02faaca3235c92da7a2686580039e6989266"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"66 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-2mm9-c2fx-c7m4","Warn: Project is vulnerable to: GHSA-5h7x-68wj-jhwc","Warn: Project is vulnerable to: GHSA-p3vf-v8qc-cwcr","Warn: Project is vulnerable to: GHSA-gx9m-whjm-85jf","Warn: Project is vulnerable to: GHSA-mmhx-hmjr-r674","Warn: Project is vulnerable to: GHSA-vhxf-7vqr-mrjg","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97","Warn: Project is vulnerable to: GHSA-765h-qjxv-5f44","Warn: Project is vulnerable to: GHSA-f2jv-r9rf-7988","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-6vfc-qv3f-vr6c","Warn: Project is vulnerable to: GHSA-5v2h-r2cx-5xgj","Warn: Project is vulnerable to: GHSA-rrrm-qjm4-v8hf","Warn: Project is vulnerable to: GHSA-4r62-v4vq-hr96","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-px4h-xg32-q955","Warn: Project is vulnerable to: GHSA-3j8f-xvm3-ffx4","Warn: Project is vulnerable to: GHSA-4p35-cfcx-8653","Warn: Project is vulnerable to: GHSA-7f3x-x4pr-wqhj","Warn: Project is vulnerable to: GHSA-jpp7-7chh-cf67","Warn: Project is vulnerable to: GHSA-q6wq-5p59-983w","Warn: Project is vulnerable to: GHSA-j9fq-vwqv-2fm2","Warn: Project is vulnerable to: GHSA-pqw5-jmp5-px4v","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-h4hr-7fg3-h35w","Warn: Project is vulnerable to: GHSA-gj77-59wh-66hg","Warn: Project is vulnerable to: GHSA-hqhp-5p83-hx96","Warn: Project is vulnerable to: GHSA-3949-f494-cm99","Warn: Project is vulnerable to: GHSA-x7hr-w5r2-h6wg","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6","Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj","Warn: Project is vulnerable to: GHSA-mxhp-79qh-mcx6","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-38fc-wpqx-33j7","Warn: Project is vulnerable to: GHSA-cf4h-3jhx-xvhq","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T20:00:57.753Z","repository_id":40729095,"created_at":"2025-08-24T20:00:57.754Z","updated_at":"2025-08-24T20:00:57.754Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28336038,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"online","status_checked_at":"2026-01-12T02:00:08.677Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["analytics","json-files","uttori"],"created_at":"2026-01-12T05:59:42.631Z","updated_at":"2026-01-12T05:59:43.140Z","avatar_url":"https://github.com/uttori.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![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)\n[![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)\n[![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)\n[![Dependency Status](https://david-dm.org/uttori/uttori-plugin-analytics-json-file.svg)](https://david-dm.org/uttori/uttori-plugin-analytics-json-file)\n[![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)\n\n# Uttori Analytics Provider - JSON File\n\nUttori analytics provider using JSON files on disk.\n\n## Install\n\n```bash\nnpm install --save @uttori/plugin-analytics-json-file\n```\n\n## Config\n\n```js\n{\n  // Registration Events\n  events: {\n    getCount: ['document-view-count'],\n    getPopularDocuments: ['popular-documents'],\n    updateDocument: ['document-save', 'document-delete'],\n    validateConfig: ['validate-config'],\n  },\n\n  // Directory files will be uploaded to.\n  directory: '',\n\n  // Name of the JSON file.\n  name: 'visits',\n\n  // File extension to use for the JSON file.\n  extension: 'json',\n}\n```\n\n* * *\n\n## API Reference\n\n\u003ca name=\"AnalyticsPlugin\"\u003e\u003c/a\u003e\n\n## AnalyticsPlugin\nPage view analytics for Uttori documents using JSON files stored on the local file system.\n\n**Kind**: global class  \n**Properties**\n\n| Name | Type | Description |\n| --- | --- | --- |\n| config | \u003ccode\u003eobject\u003c/code\u003e | The configuration object. |\n\n\n* [AnalyticsPlugin](#AnalyticsPlugin)\n    * [.configKey](#AnalyticsPlugin.configKey) ⇒ \u003ccode\u003estring\u003c/code\u003e\n    * [.defaultConfig()](#AnalyticsPlugin.defaultConfig) ⇒ \u003ccode\u003eobject\u003c/code\u003e\n    * [.validateConfig(config, _context)](#AnalyticsPlugin.validateConfig)\n    * [.register(context)](#AnalyticsPlugin.register)\n    * [.updateDocument(analytics)](#AnalyticsPlugin.updateDocument) ⇒ \u003ccode\u003eobject\u003c/code\u003e\n    * [.getCount(analytics)](#AnalyticsPlugin.getCount) ⇒ \u003ccode\u003eobject\u003c/code\u003e\n    * [.getPopularDocuments(analytics)](#AnalyticsPlugin.getPopularDocuments) ⇒ \u003ccode\u003eobject\u003c/code\u003e\n\n\u003ca name=\"AnalyticsPlugin.configKey\"\u003e\u003c/a\u003e\n\n### AnalyticsPlugin.configKey ⇒ \u003ccode\u003estring\u003c/code\u003e\nThe configuration key for plugin to look for in the provided configuration.\n\n**Kind**: static property of [\u003ccode\u003eAnalyticsPlugin\u003c/code\u003e](#AnalyticsPlugin)  \n**Returns**: \u003ccode\u003estring\u003c/code\u003e - The configuration key.  \n**Example** *(AnalyticsPlugin.configKey)*  \n```js\nconst config = { ...AnalyticsPlugin.defaultConfig(), ...context.config[AnalyticsPlugin.configKey] };\n```\n\u003ca name=\"AnalyticsPlugin.defaultConfig\"\u003e\u003c/a\u003e\n\n### AnalyticsPlugin.defaultConfig() ⇒ \u003ccode\u003eobject\u003c/code\u003e\nThe default configuration.\n\n**Kind**: static method of [\u003ccode\u003eAnalyticsPlugin\u003c/code\u003e](#AnalyticsPlugin)  \n**Returns**: \u003ccode\u003eobject\u003c/code\u003e - The configuration.  \n**Example** *(AnalyticsPlugin.defaultConfig())*  \n```js\nconst config = { ...AnalyticsPlugin.defaultConfig(), ...context.config[AnalyticsPlugin.configKey] };\n```\n\u003ca name=\"AnalyticsPlugin.validateConfig\"\u003e\u003c/a\u003e\n\n### AnalyticsPlugin.validateConfig(config, _context)\nValidates the provided configuration for required entries.\n\n**Kind**: static method of [\u003ccode\u003eAnalyticsPlugin\u003c/code\u003e](#AnalyticsPlugin)  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| config | \u003ccode\u003eobject\u003c/code\u003e | A configuration object. |\n| config.configKey | \u003ccode\u003eobject\u003c/code\u003e | A configuration object specifically for this plugin. |\n| config.configKey.urls | \u003ccode\u003eArray.\u0026lt;object\u0026gt;\u003c/code\u003e | A collection of Uttori documents. |\n| config.configKey.url_filters | \u003ccode\u003eArray.\u0026lt;RegExp\u0026gt;\u003c/code\u003e | A collection of Regular Expression URL filters. |\n| config.configKey.base_url | \u003ccode\u003estring\u003c/code\u003e | The base URL (ie https://domain.tld) for all documents. |\n| config.configKey.directory | \u003ccode\u003estring\u003c/code\u003e | The path to the location you want the sitemap file to be writtent to. |\n| _context | \u003ccode\u003eobject\u003c/code\u003e | A Uttori-like context (unused). |\n\n**Example** *(AnalyticsPlugin.validateConfig(config, _context))*  \n```js\nAnalyticsPlugin.validateConfig({ ... });\n```\n\u003ca name=\"AnalyticsPlugin.register\"\u003e\u003c/a\u003e\n\n### AnalyticsPlugin.register(context)\nRegister the plugin with a provided set of events on a provided Hook system.\n\n**Kind**: static method of [\u003ccode\u003eAnalyticsPlugin\u003c/code\u003e](#AnalyticsPlugin)  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| context | \u003ccode\u003eobject\u003c/code\u003e | A Uttori-like context. |\n| context.hooks | \u003ccode\u003eobject\u003c/code\u003e | An event system / hook system to use. |\n| context.hooks.on | \u003ccode\u003efunction\u003c/code\u003e | An event registration function. |\n| context.config | \u003ccode\u003eobject\u003c/code\u003e | A provided configuration to use. |\n| context.config.events | \u003ccode\u003eobject\u003c/code\u003e | An object whose keys correspong to methods, and contents are events to listen for. |\n\n**Example** *(AnalyticsPlugin.register(context))*  \n```js\nconst context = {\n  hooks: {\n    on: (event, callback) =\u003e { ... },\n  },\n  config: {\n    [AnalyticsPlugin.configKey]: {\n      ...,\n      events: {\n        updateDocument: ['document-save', 'document-delete'],\n        validateConfig: ['validate-config'],\n      },\n    },\n  },\n};\nAnalyticsPlugin.register(context);\n```\n\u003ca name=\"AnalyticsPlugin.updateDocument\"\u003e\u003c/a\u003e\n\n### AnalyticsPlugin.updateDocument(analytics) ⇒ \u003ccode\u003eobject\u003c/code\u003e\nWrapper function for calling update.\n\n**Kind**: static method of [\u003ccode\u003eAnalyticsPlugin\u003c/code\u003e](#AnalyticsPlugin)  \n**Returns**: \u003ccode\u003eobject\u003c/code\u003e - The provided document.  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| analytics | \u003ccode\u003eobject\u003c/code\u003e | An AnalyticsProvider instance. |\n\n**Example** *(AnalyticsPlugin.updateDocument(analytics))*  \n```js\nconst context = {\n  config: {\n    [AnalyticsPlugin.configKey]: {\n      ...,\n    },\n  },\n};\nAnalyticsPlugin.updateDocument(document, null);\n```\n\u003ca name=\"AnalyticsPlugin.getCount\"\u003e\u003c/a\u003e\n\n### AnalyticsPlugin.getCount(analytics) ⇒ \u003ccode\u003eobject\u003c/code\u003e\nWrapper function for calling update.\n\n**Kind**: static method of [\u003ccode\u003eAnalyticsPlugin\u003c/code\u003e](#AnalyticsPlugin)  \n**Returns**: \u003ccode\u003eobject\u003c/code\u003e - The provided document.  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| analytics | \u003ccode\u003eobject\u003c/code\u003e | An AnalyticsProvider instance. |\n\n**Example** *(AnalyticsPlugin.getCount(analytics, slug))*  \n```js\nconst context = {\n  config: {\n    [AnalyticsPlugin.configKey]: {\n      ...,\n    },\n  },\n};\nAnalyticsPlugin.getCount(analytics, slug);\n```\n\u003ca name=\"AnalyticsPlugin.getPopularDocuments\"\u003e\u003c/a\u003e\n\n### AnalyticsPlugin.getPopularDocuments(analytics) ⇒ \u003ccode\u003eobject\u003c/code\u003e\nWrapper function for calling update.\n\n**Kind**: static method of [\u003ccode\u003eAnalyticsPlugin\u003c/code\u003e](#AnalyticsPlugin)  \n**Returns**: \u003ccode\u003eobject\u003c/code\u003e - The provided document.  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| analytics | \u003ccode\u003eobject\u003c/code\u003e | An AnalyticsProvider instance. |\n\n**Example** *(AnalyticsPlugin.updateDocument(analytics))*  \n```js\nconst context = {\n  config: {\n    [AnalyticsPlugin.configKey]: {\n      ...,\n    },\n  },\n};\nAnalyticsPlugin.getPopularDocuments(analytics);\n```\n\n* * *\n\n## Tests\n\nTo run the test suite, first install the dependencies, then run `npm test`:\n\n```bash\nnpm install\nnpm test\nDEBUG=Uttori* npm test\n```\n\n## Contributors\n\n* [Matthew Callis](https://github.com/MatthewCallis)\n\n## License\n\n* [MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futtori%2Futtori-plugin-analytics-json-file","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Futtori%2Futtori-plugin-analytics-json-file","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futtori%2Futtori-plugin-analytics-json-file/lists"}