UNPKG

tse-client

Version:

A client for fetching stock data from the Tehran Stock Exchange (TSETMC). Works in Browser, Node and as CLI.

17 lines (16 loc) 317 B
const c = { red: 31, green: 32, yellow: 33, cyan: 36, grey: 90, redBold: 91, greenBold: 92, yellowBold: 93, whiteBold: 97 }; Object.keys(c).forEach(k => { String.prototype.__defineGetter__(k, function () { return `[${c[k]}m${this}`; }); });