ezsteam
Version:
A simply and lightweight package to interact with Steam API and convert IDs. Alpha testing.
32 lines (23 loc) • 679 B
Markdown
A simply and lightweight package to interact with Steam API and convert IDs. JSON format.
---
```js
const { Ezsteam } = require('ezsteam');
const ezsteam = new Ezsteam('API KEY GOES HERE');
// Get Steam64 ID from Steam custom ID.
async function getS64() {
const s = await ezsteam.getSteam64('caracolreal');
console.log(s);
}
getS64()
// Get Steam64 ID from Steam custom ID.
async function getC() {
const s = await ezsteam.getCustom('76561197960435530');
console.log(s);
}
getC()
```
---
Made w/❤ by cctwaterson. [Steam profile](https://steamcommunity.com/id/caracolreal/)