{"id":23201066,"url":"https://github.com/codedotjs/stafo","last_synced_at":"2025-08-02T09:05:38.225Z","repository":{"id":57369271,"uuid":"61509284","full_name":"CodeDotJS/stafo","owner":"CodeDotJS","description":":fork_and_knife: Get the total number of stars and forks on a particular repository.","archived":false,"fork":false,"pushed_at":"2016-06-21T21:55:18.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T00:41:20.036Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/CodeDotJS.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2016-06-20T01:42:20.000Z","updated_at":"2023-09-08T17:11:44.000Z","dependencies_parsed_at":"2022-09-03T19:32:15.471Z","dependency_job_id":null,"html_url":"https://github.com/CodeDotJS/stafo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDotJS%2Fstafo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDotJS%2Fstafo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDotJS%2Fstafo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDotJS%2Fstafo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeDotJS","download_url":"https://codeload.github.com/CodeDotJS/stafo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247314551,"owners_count":20918859,"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-12-18T15:13:48.463Z","updated_at":"2025-04-05T09:26:20.412Z","avatar_url":"https://github.com/CodeDotJS.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stafo\n\n\u003e Get the total number of stars and forks on a particular github repository.\n\n[![Build Status](https://travis-ci.org/CodeDotJS/stafo.svg?branch=master)](https://travis-ci.org/CodeDotJS/stafo)\n\n## Install\n\n```\n$ npm install --save stafo\n```\n\n## Usage\n\n- `stars` :\n\n```js\n'use strict';\n\nconst stafo = require('stafo');\n\nstafo.stars('facebook/react').then(gitStars =\u003e {\n\tconsole.log(gitStars);\n\t// =\u003e 44,022\n});\n```\n\n- `forks` :\n\n```js\n'use strict';\n\nconst stafo = require('stafo');\n\nstafo.forks('facebook/react').then(gitForks =\u003e {\n\tconsole.log(gitForks);\n\t// =\u003e 7,584\n});\n```\n\n## API\n\n### __```stafo.repo('username/repository')```__\n\n- Returns a promise for an array of defined repository property with current stars and forks.\n\n\n### __```stafo.stars('username/repository')```__\n\n- Returns a promise with ```total stars``` for the specified repository.\n\n\n### __```stafo.forks('username/repository')```__\n\n- Returns a promise with ```total forks``` for the specified repository.\n\n\n__```username/repository```__\n\n__`TYPE :`__ `string`\n\n# License\n\nMIT \u0026copy; [Rishi Giri](http://rishigiri.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodedotjs%2Fstafo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodedotjs%2Fstafo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodedotjs%2Fstafo/lists"}