You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b968ed4
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/packages/cli.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -123,3 +123,18 @@ console.log(highlighted)
123
123
1.`code: string`
124
124
2.`lang: BundledLanguage`
125
125
3.`theme: BundledTheme`
126
+
127
+
and one optional parameter:
128
+
129
+
4.`options?: CodeToANSIOptions`
130
+
131
+
The color level of the emitted escape codes is explicit instead of being inferred from the environment, and defaults to `3` (truecolor). Use `options.colorLevel` to target a different level — pass the level reported by `ansis` to follow the current terminal, or `0` to get plain text:
0 commit comments