{"id":21409440,"url":"https://github.com/gw2efficiency/account-statistics","last_synced_at":"2025-07-20T05:33:06.925Z","repository":{"id":10539639,"uuid":"66106037","full_name":"gw2efficiency/account-statistics","owner":"gw2efficiency","description":"Calculate statistics of guildwars2 accounts","archived":false,"fork":false,"pushed_at":"2025-06-29T15:14:03.000Z","size":423,"stargazers_count":8,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-14T01:49:56.969Z","etag":null,"topics":["maintained","npm-package"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"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/gw2efficiency.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-08-19T19:06:44.000Z","updated_at":"2025-06-29T15:14:07.000Z","dependencies_parsed_at":"2024-04-17T07:37:49.308Z","dependency_job_id":"e61c6149-be51-49e1-aeb0-60098822f81c","html_url":"https://github.com/gw2efficiency/account-statistics","commit_stats":{"total_commits":289,"total_committers":6,"mean_commits":"48.166666666666664","dds":0.03806228373702425,"last_synced_commit":"f9bf50a007778769323a63df24106a142a22657b"},"previous_names":[],"tags_count":119,"template":false,"template_full_name":null,"purl":"pkg:github/gw2efficiency/account-statistics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gw2efficiency%2Faccount-statistics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gw2efficiency%2Faccount-statistics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gw2efficiency%2Faccount-statistics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gw2efficiency%2Faccount-statistics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gw2efficiency","download_url":"https://codeload.github.com/gw2efficiency/account-statistics/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gw2efficiency%2Faccount-statistics/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265967117,"owners_count":23857065,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["maintained","npm-package"],"created_at":"2024-11-22T17:26:06.171Z","updated_at":"2025-07-20T05:33:01.913Z","avatar_url":"https://github.com/gw2efficiency.png","language":"JavaScript","readme":"# account-statistics\n\n[![Build Status](https://img.shields.io/travis/gw2efficiency/account-statistics.svg?style=flat-square)](https://travis-ci.org/gw2efficiency/account-statistics)\n[![Coverage Status](https://img.shields.io/codecov/c/github/gw2efficiency/account-statistics/master.svg?style=flat-square)](https://codecov.io/github/gw2efficiency/account-statistics)\n\n\u003e Calculate statistics of guildwars2 accounts\n\n*This is part of [gw2efficiency](https://gw2efficiency.com). Please report all issues in [the central repository](https://github.com/gw2efficiency/issues/issues).*\n\n## Install\n\n```\nnpm install gw2e-account-statistics\n```\n\nThis module can be used for Node.js as well as browsers using [Browserify](https://github.com/substack/browserify-handbook#how-node_modules-works).\n\n## Usage\n\n### Calculate the statistics\n\n```js\nimport accountStatistics from 'gw2e-account-statistics'\n\n// An object containing all the account data available for the API key\nconst accountData = {\n  account: /* ... */,\n  characters: /* ... */,\n  bank: /* ... */,\n  materials: /* ... */,\n  commerce: {\n    buys: /* ... */,\n    sells: /* ... */\n  },\n  skins: /* ... */,\n  wallet: /* ... */,\n  dyes: /* ... */,\n  minis: /* ... */,\n\n  outfits: /* ... */,\n  recipes: /* ... */,\n  guilds: /* ... */,\n  inventory: /* ... */,\n\n  titles: /* ... */,\n  achievements: /* ... */,\n  pvp: {\n    stats: /* ... */,\n    // ...\n  }\n}\n\n// Extra information for context-dependent statistics\nconst extraInformation = {\n  pvp: { currentSeason: 'SEASON-ID' },\n  skins: { typeMap: { Armor: [1, 2, 3], Weapon: [1, 2, 3], Back: [1, 2, 3] } }\n}\n\n// Calculate everything!\naccountStatistics(accountData, extraInformation)\n// -\u003e Object with all statistics calculated\n```\n\n### Calculate a part of the account statistics\n\nYou can import the partial calculations on their own and work with them.\n\n```js\nimport unlocks from 'gw2e-account-statistics/build/statistics/unlocks'\n\nunlocks(accountData)\n// -\u003e Only the \"unlocks\" statistics\n```\n\n## Tests\n\n```\nnpm test\n```\n\n## Licence\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgw2efficiency%2Faccount-statistics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgw2efficiency%2Faccount-statistics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgw2efficiency%2Faccount-statistics/lists"}