message-await
Version:
A utility to print message with an async success or failure in node.js
10 lines (9 loc) • 423 B
TypeScript
import { MessageAwait, MessageAwaitOptions } from './contracts';
export * from './contracts';
/**
* prints the initial message
* @param message - message to display
* @param options - MessageAwaitOptions
* @returns MessageAwait - options to complete the message when done or update the message with progress info
*/
export default function print(message: string, options?: Partial<MessageAwaitOptions>): MessageAwait;