1.2.1 • Published 5 years ago

libbarter v1.2.1

Weekly downloads
3
License
LGPL-3.0
Repository
github
Last release
5 years ago

libbarter

API wrapper for Barter.vg

npm.io

Build Status codecov

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.

License

LGPL v3

1.2.1

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago