const reader = fs.createReadStream(fileName, { encoding: 'utf8' });
const jsonParse = (fileName) => JSON.parse(fs.readFileSync(fileName, { encoding: 'utf8' }));
getUserInfo = () => {
return fetch(`${this.options.baseUrl}/users/me`, this.options.token)
.then(res => res.ok ? res.json() : Promise.reject(res.status))
.catch(err => console.log(`Ошибка: ${err}`))
};