Lightweight coloured symbols for various log levels
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
608 B

> Lightweight coloured symbols for various log levels.
Includes fallbacks for Windows CMD which only supports a [limited character set](
import nanoSymbols from 'nanosymbols';
console.log(nanoSymbols.success, 'Finished successfully!');
// Terminals with Unicode support: ✔ Finished successfully!
// Terminals without Unicode support: √ Finished successfully!
declare const nanoSymbols: {
readonly info: string;
readonly success: string;
readonly warning: string;
readonly error: string;
export default nanoSymbols;