You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

11 lines
274 B

import * as path from 'path';
import * as fs from 'fs';
export const EXPORTED_PATH = path.join(__dirname, '../exported');
export function getApiKey(host) {
let data = fs.readFileSync(path.join(__dirname, '../api-keys.json'), 'utf8');
return JSON.parse(data)[host]
}