Tarkov Market
Unofficial NodeJS client for the tarkov-market.com api
Simple client/wrapper for the tarkov-market.com API
Features
- ✨ Fully Typed
💾 Supports Caching- 🤖 Built-in mirror selection
Code Demo
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();
Download & Installation
$ yarn add tarkov-market
or npm install tarkov-market
Make sure to grab an api key !
Keep your code readable. For big features, open an issue in advance. Contributing
Authors
License
This project is licensed under the MIT License