File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -32,10 +32,6 @@ console.log(fallbackSymbols.tick);
32
32
console .log (replaceSymbols (' ✔︎ check' ));
33
33
// On terminals with Unicode symbols: ✔︎ check
34
34
// On other terminals: √ check
35
-
36
- console .log (replaceSymbols (' ✔︎ check' , {useFallback: true }));
37
- // On terminals with Unicode symbols: √︎ check
38
- // On other terminals: √ check
39
35
```
40
36
41
37
## API
@@ -79,6 +75,14 @@ Whether to replace symbols with fallbacks.
79
75
80
76
This can be set to ` true ` to always use fallback symbols, whether the terminal has poor Unicode support or not.
81
77
78
+ ``` js
79
+ import {replaceSymbols } from ' figures' ;
80
+
81
+ console .log (replaceSymbols (' ✔︎ check' , {useFallback: true }));
82
+ // On terminals with Unicode symbols: √︎ check
83
+ // On other terminals: √ check
84
+ ```
85
+
82
86
## Figures
83
87
84
88
` Fallback ` characters are only shown when they differ from the ` Main ` ones.
You can’t perform that action at this time.
0 commit comments