1.0.3 • Published 5 years ago
eddb v1.0.3
eddb
A simple library to download all files from the eddb.io api. Was made for the Discord bot edinfo.
usage
Please note, some of the files are gignormous (especially systems.csv) so I wouldn't recommend downloading them often. Set the verbose parameters to true to see the download percentage.
Files aren't saved till they are downloaded. Saving the file takes milliseconds, some of the files take 10 minutes to download depending on your internet speeds.
fetchCSV(path, verbose)
. Downloads all available csv files to a path.
Example
let eddb = require('eddb'),
path = require('path');
eddb.fetchCSV(path.join(__dirname, 'csv'), true);
Downloads all csv files to a dir named csv.
fetchJSON(path, jsonl, verbose)
Downloads all available json and jsonl files.
Example
let eddb = require('eddb'),
path = require('path');
eddb.fetchJSON(path.join(__dirname, 'json'), true, true);
Downloads all json and jsonl files to a dir named json.