ddsol / speedtest.net

node.js SpeedTest.net client module
MIT License
610 stars 125 forks source link

license info in stdout results in error #117

Closed kitsunekyo closed 3 years ago

kitsunekyo commented 3 years ago

Error: When running the package through node via a promise, the package will output the license info. This info message will result in the promise failing, even though it shouldn't.

image

const speedtest = require("speedtest-net");

const OPTIONS = {
    acceptLicense: true,
    acceptGdpr: true,
};

speedtest(OPTIONS)
    .then((result) => {
        console.log(result);
    })
    .catch((e) => console.log(e));

Expected: It should just continue, as it would apparently (according to the info message)