UNPKG

bot18

Version:

A high-frequency cryptocurrency trading bot by Zenbot creator @carlos8f

14 lines (10 loc) 381 B
'use strict'; const ansiEscapes = require('ansi-escapes'); const supportsHyperlinks = require('supports-hyperlinks'); module.exports = (text, url, options = {}) => { if (!supportsHyperlinks.stdout) { return options.fallback ? options.fallback(text, url) : `${text} (${url})`; } return ansiEscapes.link(text, url); }; module.exports.isSupported = supportsHyperlinks.stdout;