log-symbols
- Version 7.0.0
- Published
- 4.4 kB
- 2 dependencies
- MIT license
Install
npm i log-symbols
yarn add log-symbols
pnpm add log-symbols
Overview
Colored symbols for various log levels. Example: `✔︎ Success`
Index
Variables
Variables
variable logSymbols
const logSymbols: { readonly info: string; readonly success: string; readonly warning: string; readonly error: string;};
Colored symbols for various log levels.
Includes fallbacks for Windows CMD which only supports a [limited character set](https://en.wikipedia.org/wiki/Code_page_437).
Example 1
import logSymbols from 'log-symbols';console.log(logSymbols.success, 'Finished successfully!');// Terminals with Unicode support: ✔ Finished successfully!// Terminals without Unicode support: √ Finished successfully!
Package Files (1)
Dependencies (2)
Dev Dependencies (4)
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/log-symbols
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/log-symbols)
- HTML<a href="https://www.jsdocs.io/package/log-symbols"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 2644 ms. - Missing or incorrect documentation? Open an issue for this package.