source: trip-planner-front/node_modules/log-symbols/readme.md@ 6c1585f

Last change on this file since 6c1585f was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.4 KB
Line 
1# log-symbols
2
3<img src="screenshot.png" width="226" height="192" align="right">
4
5> Colored symbols for various log levels
6
7Includes fallbacks for Windows CMD which only supports a [limited character set](https://en.wikipedia.org/wiki/Code_page_437).
8
9## Install
10
11```
12$ npm install log-symbols
13```
14
15## Usage
16
17```js
18const logSymbols = require('log-symbols');
19
20console.log(logSymbols.success, 'Finished successfully!');
21// Terminals with Unicode support: ✔ Finished successfully!
22// Terminals without Unicode support: √ Finished successfully!
23```
24
25## API
26
27### logSymbols
28
29#### info
30#### success
31#### warning
32#### error
33
34## Related
35
36- [figures](https://github.com/sindresorhus/figures) - Unicode symbols with Windows CMD fallbacks
37- [py-log-symbols](https://github.com/ManrajGrover/py-log-symbols) - Python port
38- [log-symbols](https://github.com/palash25/log-symbols) - Ruby port
39- [guumaster/logsymbols](https://github.com/guumaster/logsymbols) - Golang port
40
41---
42
43<div align="center">
44 <b>
45 <a href="https://tidelift.com/subscription/pkg/npm-log-symbols?utm_source=npm-log-symbols&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
46 </b>
47 <br>
48 <sub>
49 Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
50 </sub>
51</div>
Note: See TracBrowser for help on using the repository browser.