tarkov-market
v1.1.5
Published
Downloads
21
Readme
import TarkovMarket from 'tarkov-market';
async function demo () {
const client = new TarkovMarket('myapikey');
// Get all items
const items = await client.getAll();
console.log(`Got ${items.length} items`);
// Get a single item
const item = await client.getItem("f0fa8457-6638-4ad2-b7e8-4708033d8f39");
console.log(`Look, it's a ${item.name} !`); // Output: Look, it's a Secure Flash drive !
// Search for items
const searchResults = await client.search("secure flash");
console.log(`Search results: `, searchResults);
}
demo();
$ yarn add tarkov-market
or npm install tarkov-market
Make sure to grab an api key !
This project is licensed under the MIT License