UNPKG

@kth/api-call

Version:

Node.js module to make JSON calls against APIs.

29 lines (23 loc) 491 B
function green(text) { return `\x1b[0;32m${text}\x1b[0m` } function red(text) { return `\x1b[1;31m${text}\x1b[0m` } function bold(text) { return `\x1b[1;37m${text}\x1b[0m` } module.exports = { green, WORKS: green('works'), SENDS: green('sends'), DELIVERS: green('delivers'), RETURNS: green('returns'), RESOLVES: green('resolves'), IS_ACCESSIBLE: green('is accessible'), EXPECTS: green('expects'), red, FAILS: red('FAILS'), REJECTS: red('REJECTS'), bold, }