Get user name from user id?

You can get the name easily by using the module twitch-api-v5

var api = require('twitch-api-v5');
 
api.clientID = 'Twitch app client-id';
 
api.users.userByID({ userID: '12826' }, (err, res) => {
    if(err) {
        console.log(err);
    } else {
        console.log(res);
        /* Example response
        {
            display_name: 'Twitch',
            _id: '12826',
            name: 'twitch',
            type: 'user',
            ...
        }
        */
    }
});