evepraisal
v1.0.0
Published
A simple wrapper for the evepraisal API
Downloads
14
Readme
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 } }
*/