Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 12c343b

Browse files
committedFeb 25, 2024·
Move example
1 parent 4b187ac commit 12c343b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed
 

‎readme.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ console.log(fallbackSymbols.tick);
3232
console.log(replaceSymbols('✔︎ check'));
3333
// On terminals with Unicode symbols: ✔︎ check
3434
// On other terminals: √ check
35-
36-
console.log(replaceSymbols('✔︎ check', {useFallback: true}));
37-
// On terminals with Unicode symbols: √︎ check
38-
// On other terminals: √ check
3935
```
4036

4137
## API
@@ -79,6 +75,14 @@ Whether to replace symbols with fallbacks.
7975

8076
This can be set to `true` to always use fallback symbols, whether the terminal has poor Unicode support or not.
8177

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+
8286
## Figures
8387

8488
`Fallback` characters are only shown when they differ from the `Main` ones.

0 commit comments

Comments
 (0)
Please sign in to comment.