{"id":16833082,"url":"https://github.com/balthazar/csgo-float","last_synced_at":"2025-03-22T04:30:42.992Z","repository":{"id":45038199,"uuid":"48812185","full_name":"balthazar/csgo-float","owner":"balthazar","description":":gem: Retrieve CS:GO float values in JavaScript","archived":false,"fork":false,"pushed_at":"2017-03-07T16:15:52.000Z","size":41,"stargazers_count":58,"open_issues_count":0,"forks_count":12,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-11T23:16:34.204Z","etag":null,"topics":["counter-strike","csgo","games","node-steam"],"latest_commit_sha":null,"homepage":"","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/balthazar.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}},"created_at":"2015-12-30T17:37:48.000Z","updated_at":"2025-03-11T03:03:55.000Z","dependencies_parsed_at":"2022-09-24T09:34:02.384Z","dependency_job_id":null,"html_url":"https://github.com/balthazar/csgo-float","commit_stats":null,"previous_names":["apercu/csgo-float"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balthazar%2Fcsgo-float","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balthazar%2Fcsgo-float/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balthazar%2Fcsgo-float/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balthazar%2Fcsgo-float/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/balthazar","download_url":"https://codeload.github.com/balthazar/csgo-float/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244907420,"owners_count":20529850,"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":["counter-strike","csgo","games","node-steam"],"created_at":"2024-10-13T11:52:16.609Z","updated_at":"2025-03-22T04:30:42.699Z","avatar_url":"https://github.com/balthazar.png","language":"JavaScript","readme":"# csgo-float\n\n\u003e Retrieve CS:GO float values in JavaScript\n\n    npm i -S csgo-float\n\n#### Usage\n\nOnly one request can be done at a time by each client. You'll have to wait for the first request to be processed before sending another one.\n\n###### Client\n\n```javascript\nnew FloatClient(clientAuth, debug)\n```\n\n`clientAuth` {Object} SteamUser credentials to login / SteamClient\n\n`debug` {Boolean} Print some useful informations\n\n```javascript\n// Init a client using a credentials object\nconst client = new FloatClient({\n  account_name: 'yeah',\n  password: 'this-is',\n  auth_code: 'definitely',\n  sha_sentryfile: 'right'\n}, true)\n\n// Or by passing an existing SteamClient instance\n// that should be connected and logged.\nconst steamClient = new SteamClient()\nconst client = new FloatClient(steamClient)\n```\n\n###### Methods\n\n```javascript\nclient.requestFloat(url)\n```\n\nReturns a Promise.\n\nWhere url is a string formatted like `S76561198190349706A4757476613D16467978012840927110`.\n\n```javascript\nclient.requestFloat('S76561198190349706A4757476613D16467978012840927110')\n  .then(floatValue =\u003e console.log(floatValue))\n  .catch(err =\u003e console.log(err))\n```\n\n###### Events\n\n`ready` Emitted once the client is ready to receive float requests\n\n`sentry` The user is authenticated and the account sentry is sent, should be saved somewhere\n\n`error` Once an error is triggered\n\n#### Thanks\n\nThis would not exists without the help of [@Twewki](https://github.com/Tewki).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalthazar%2Fcsgo-float","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbalthazar%2Fcsgo-float","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalthazar%2Fcsgo-float/lists"}