UNPKG

@the-goat/core

Version:

![npm version](https://badgen.net/npm/v/@the-goat/goat?icon=npm) ![npm downloads](https://badgen.net/npm/dt/@the-goat/goat?icon=npm) ![npm weekly downloads](https://badgen.net/npm/dw/@the-goat/goat?icon=npm) ![npm licence](https://badgen.net/npm/license/@

42 lines (41 loc) 943 B
import { Kleur } from 'kleur'; /** * Goat's Notification services */ declare class Notifier { style: Kleur; constructor(); /** * Basic logging functionality */ log(text: string): void; /** * Inform user about something (hopefully interesting) * @param {String} text - value to inform about * @memberof Notifier */ info(text: string): void; /** * Error event logging */ error(error: string | { messageFormatted: string; }): void; /** * Write console messages on a single line. */ singleLine(text: string): void; /** * Get an emoji by name */ emoji(emoji: string): any; /** * Format a command to log and copy to clipboard for use * @param {String} content * @returns {String} * @memberof Notifier */ script(content: string): string; } declare const notify: Notifier; export default notify;