1.0.0 • Published 6 years ago

evepraisal v1.0.0

Weekly downloads
1
License
BSD-3-Clause
Repository
github
Last release
6 years ago

node-evepraisal

A js client for the evepraisal API

const ep = require('evepraisal');

ep.get('gu7r6').then((a)=> {
  console.log(a)
});

/*
{ id: 'gu7r6',
  created: 1520667889,
  kind: 'assets',
  market_name: 'jita',
  totals: { buy: 135000000, sell: 177499996.06, volume: 1000 },
  items:
   [ { name: '50000MN Cold-Gas Enduring Microwarpdrive',
       typeID: 41252,
       typeName: '50000MN Cold-Gas Enduring Microwarpdrive',
       typeVolume: 1000,
       quantity: 1,
       prices: [Object],
       meta: {} } ],
  raw: '50000MN Cold-Gas Enduring Microwarpdrive\t1\tPropulsion Module\t\tMedium\t1,000 m3\t143,151,988.98 ISK',
  parser_lines: { assets: [ 0 ] },
  unparsed: {},
  private: false,
  price_percentage: 100,
  live: false }
*/

ep.create(
    `50000MN Cold-Gas Enduring Microwarpdrive
5000MN Cold-Gas Enduring Microwarpdrive`, // The data you're getting an appraisal on
    'jita', // The market you're looking up data for.
    {} // Optional options argument. Can be used to set persist="no", etc. This just gets passed to evepraisal.
.then((a) => {
  console.log(a)
});

/*
{ appraisal:
   { id: 'gu7ui',
     created: 1520668463,
     kind: 'listing',
     market_name: 'jita',
     totals: { buy: 135000000, sell: 177499996.06, volume: 1000 },
     items: [ [Object] ],
     raw: '50000MN Cold-Gas Enduring Microwarpdrive\n5000MN Cold-Gas Enduring Microwarpdrive',
     parser_lines: { listing: [Array] },
     unparsed: { '1': '5000MN Cold-Gas Enduring Microwarpdrive' },
     private: false,
     price_percentage: 100,
     live: false } }
*/