tarkov-market
TypeScript icon, indicating that this package has built-in type declarations

1.1.5 • Public • Published

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 !

Contributing

Keep your code readable. For big features, open an issue in advance.

Authors

License

This project is licensed under the MIT License

Readme

Keywords

none

Package Sidebar

Install

npm i tarkov-market

Weekly Downloads

1

Version

1.1.5

License

MIT

Unpacked Size

24.2 kB

Total Files

18

Last publish

Collaborators

  • itsrems