Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sindresorhus/log-symbols
Colored symbols for various log levels
https://github.com/sindresorhus/log-symbols
Last synced: 3 days ago
JSON representation
Colored symbols for various log levels
- Host: GitHub
- URL: https://github.com/sindresorhus/log-symbols
- Owner: sindresorhus
- License: mit
- Created: 2014-07-10T00:51:52.000Z (over 10 years ago)
- Default Branch: main
- Last Pushed: 2024-08-17T11:33:37.000Z (4 months ago)
- Last Synced: 2024-11-30T18:25:13.579Z (13 days ago)
- Language: JavaScript
- Size: 50.8 KB
- Stars: 745
- Watchers: 9
- Forks: 33
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
- Security: .github/security.md
Awesome Lists containing this project
- awesome-cross-platform-nodejs - log-symbols - Colored symbols for various log levels with Windows fallbacks. (Libraries / Shell)
- awesome-nodejs - log-symbols - Colored symbols for various log levels. (Packages / Command-line utilities)
- awesome-nodejs-cn - log-symbols - 不同日志级别的彩色符号. (目录 / 命令行工具)
- awesome-nodejs-cn - log-symbols - Colored symbols for various log levels. (包 / Command-line utilities)
- awesome-nodejs - log-symbols - Colored symbols for various log levels. ![](https://img.shields.io/github/stars/sindresorhus/log-symbols.svg?style=social&label=Star) (Repository / Command-line Utilities)
- awesome-starred-test - sindresorhus/log-symbols - Colored symbols for various log levels (JavaScript)
- awesome-nodejs - log-symbols - Colored symbols for various log levels. (Packages / Command-line utilities)
- awesome-node - log-symbols - Colored symbols for various log levels. (Packages / Command-line utilities)
- awesome-nodejs - log-symbols - 为 log 添加彩色符号(info、success、warning、error) (Uncategorized / Uncategorized)
- awesome - sindresorhus/log-symbols - Colored symbols for various log levels (others)
- awesome-andy-node - log-symbols - Colored symbols for various log levels. (Packages / Command-line utilities)
- awesome-nodejs-precise - log-symbols - symbols .svg?style=social&label=Star&maxAge=2592000?style=flat-square)]() | Colored symbols for various log levels. | (Packages / Command-line utilities)
- awesome-nodejs - log-symbols - Colored symbols for various log levels - ★ 361 (Command-line utilities)
- awesome-nodejs-new - log-symbols - Colored symbols for various log levels. (Packages / Command-line utilities)
- awesome-nodejs-cn - log-symbols - **star:744** 不同日志级别的彩色符号 (包 / 命令行实用工具)
- awesome-nodejs-cn - log-symbols - 用不同颜色的符号记录不同级别的日志 (包 / 命令行工具)
- jimsghstars - sindresorhus/log-symbols - Colored symbols for various log levels (JavaScript)
README
# log-symbols
> 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).
## Install
```sh
npm install log-symbols
```## Usage
```js
import logSymbols from 'log-symbols';console.log(logSymbols.success, 'Finished successfully!');
// Terminals with Unicode support: ✔ Finished successfully!
// Terminals without Unicode support: √ Finished successfully!
```## API
### logSymbols
#### info
#### success
#### warning
#### error## Related
- [figures](https://github.com/sindresorhus/figures) - Unicode symbols with Windows CMD fallbacks
- [py-log-symbols](https://github.com/ManrajGrover/py-log-symbols) - Python port
- [log-symbols](https://github.com/palash25/log-symbols) - Ruby port
- [guumaster/logsymbols](https://github.com/guumaster/logsymbols) - Golang port