{"id":15547882,"url":"https://github.com/goenning/nixstats-js","last_synced_at":"2025-04-07T11:43:42.961Z","repository":{"id":142685698,"uuid":"61323708","full_name":"goenning/nixstats-js","owner":"goenning","description":"NIXStats.js is CLI and JavaScript Wrapper for NIXStats","archived":false,"fork":false,"pushed_at":"2016-06-28T21:14:16.000Z","size":206,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T03:39:46.353Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/goenning.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}},"created_at":"2016-06-16T20:27:45.000Z","updated_at":"2018-04-16T19:34:23.000Z","dependencies_parsed_at":"2023-05-19T01:01:00.282Z","dependency_job_id":null,"html_url":"https://github.com/goenning/nixstats-js","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"0524c2893705c65eb58ea99354d7ab3181ad664c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goenning%2Fnixstats-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goenning%2Fnixstats-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goenning%2Fnixstats-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goenning%2Fnixstats-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/goenning","download_url":"https://codeload.github.com/goenning/nixstats-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648925,"owners_count":20972942,"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":[],"created_at":"2024-10-02T13:12:09.914Z","updated_at":"2025-04-07T11:43:42.938Z","avatar_url":"https://github.com/goenning.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NIXStats.js is CLI and JavaScript Wrapper for [NIXStats](https://nixstats.com)\n\n## Using as CLI\n\n### Install\n\nInstall it with `npm install -g nixstats`.\n\n### Usage\n\nGo to [NIXStats](https://nixstats.com) and generate your own API token.\n\nRun `nixstats config \u003cyour_token_goes_here\u003e`\n\nRun `nixstats now` to see current servers situation.\n\n![](nixstats.png)\n\n### Help\n\nRun `nixstats --help` for full CLI options.\n\n## Using as a JavaScript Wrapper for NIXStats API\n\n### Install\n\nInstall it with `npm install nixstats -save`.\n\n### Usage\n\n```javascript\nvar ns = require('nixstats');\nvar nsClient = new ns.NIXStatsClient('\u003c\u003cyour_token_goes_here\u003e');\nnsClient.server.list().then((result) =\u003e {\n  for(var server of result.servers) {\n    //...\n  }\n});\n```\n\n### About\n\n1. For full list of `NIXStatsClient` functions see [index.js](lib/index.js);\n2. All functions are returned as Promises;\n3. The result of each Promise is exactly as shown in the [official documentation](https://nixstats.com/api/documentation.html);\n\n## Looking forward\n\n- [CLI] output more useful information;\n- [CLI] more operations, history, details, etc;\n- [Wrapper] enable the user to choose between Promises or Callback;","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoenning%2Fnixstats-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoenning%2Fnixstats-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoenning%2Fnixstats-js/lists"}