libbarter
v1.2.1
Published
Barter.vg wrapper in Node.js
Downloads
5
Readme
libbarter
API wrapper for Barter.vg
Documentation
Example
const Barter = require("./index.js");
(async () => {
let barter = new Barter();
let offers = await barter.getOffers("a0");
let firstOffer = await offers[Object.keys(offers)[0]].getFullOffer();
let firstItem = firstOffer.items.to[0];
let firstFullItem = await firstItem.getFullItem();
console.log(firstFullItem);
})();
Tests
libbarter comes with a test suite powered by jest that evaluates many features.
git clone https://github.com/antigravities/libbarter
cd libbarter
npm i --dev
npm test
Grab a cup of tea, tests may take up to 2 minutes to complete as GlobalOfferCollector
is covered.