# csgo-data

> A minimalist and lightweight module to get data from CS:GO players.

Latest version **1.1.1** (published 2022-12-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install csgo-data
pnpm add csgo-data
yarn add csgo-data
bun add csgo-data
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2022-12-20 |
| First published | 2022-12-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 20.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | cctwaterson |
| Maintainers | cctwaterson |
| Keywords | csgo, steam, api, id, web |

## Links

- npm: https://www.npmjs.com/package/csgo-data
- Repository: https://github.com/samolo-H3LL0/csgo-data
- Homepage: https://github.com/samolo-H3LL0/csgo-data#readme
- Issues: https://github.com/samolo-H3LL0/csgo-data/issues
- npm.io page: https://npm.io/package/csgo-data

## Dependencies (2)

- [axios](https://npm.io/package/axios.md) ^1.2.1
- [typescript](https://npm.io/package/typescript.md) ^4.9.4

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2022-12-20
- 1.0.1 — 2022-12-20
- 1.0.0 — 2022-12-20

## README

![CSGO:DATA](github/thumbnail.png)
---
---
## A minimalist and simple module to interact and get stats from CS:GO players. JSON format.
<br>

### __Getting started__

```js
const csgodata = require('csgo-data');
const connection = new csgodata.Connection('STEAM API KEY GOES HERE');

// Get stats from a user
connection.getStats('STEAM64 ID GOES HERE').then(r => ...)

// Get achievements from a user
connection.getAchievements('STEAM64 ID GOES HERE').then(r => ...)

// Get global achievement percentages (No arguments required)
connection.getAchievementsPercentages().then(r => ...)

// Get someone's CS:GO inventory
connection.getInventory('STEAM64 GOES HERE').then(r => ...)
```
> Note: csgo-data only supports steam64 ids (example: 123456789078678) for the moment. You can use modules to convert those ids.

---
Made w/❤ by cctwaterson. | [Steam profile](https://steamcommunity.com/id/76561199160525458)

---
_Source: https://npm.io/package/csgo-data · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
