@ianlucas/cs2-lib
v5.8.2
Published
A TypeScript library for manipulating Counter-Strike 2 data
Downloads
309
Readme
cs2-lib
A TypeScript library for manipulating Counter-Strike 2 data
This library contains items and data from Counter-Strike 2, including utility functions and classes for interacting with them using TypeScript.
Install
npm install @ianlucas/cs2-lib
Usage
import { CS2Economy, CS2_ITEMS } from "@ianlucas/cs2-lib";
import english from "@ianlucas/cslib/assets/localizations/items-english.json";
CS2Economy.use({
items: CS2_ITEMS,
language: english
});
const item = CS2Economy.getById(307);
item.name;
//=> "AWP | Dragon Lore"