import * as fs from 'fs';
import * as jsyaml from 'js-yaml';

export function readTypeIDs(path): Object {
  return jsyaml.load(fs.readFileSync(path).toString());
}

export function readToken(path): string {
  return fs.readFileSync(path).toString();
}

import * as fs from 'fs';
import * as jsyaml from 'js-yaml';

export function readTypeIDs(path): Object {
  return jsyaml.load(fs.readFileSync(path).toString());
}

export function readToken(path): string {
  return fs.readFileSync(path).toString().trim();
}

Fix crash when token.txt contains a newline
Fix crash when token.txt contains a newline

