77- [ Formatter] ( #formatter )
88 - [ _ printLicense] ( #_printlicense )
99 - [ ansi] ( #ansi )
10+ - [ html] ( #html )
1011 - [ markdown] ( #markdown )
1112 - [ plainText] ( #plaintext )
1213 - [ raw] ( #raw )
1516
1617## _ printLicense
1718
18- [ Show source in formatter.py:46 ] ( ../../../licensecheck/formatter.py#L46 )
19+ [ Show source in formatter.py:51 ] ( ../../../licensecheck/formatter.py#L51 )
1920
2021Output a license as plain text.
2122
@@ -42,7 +43,7 @@ def _printLicense(licenseEnum: License) -> str: ...
4243
4344## ansi
4445
45- [ Show source in formatter.py:103 ] ( ../../../licensecheck/formatter.py#L103 )
46+ [ Show source in formatter.py:108 ] ( ../../../licensecheck/formatter.py#L108 )
4647
4748Format to ansi.
4849
@@ -75,9 +76,44 @@ def ansi(
7576
7677
7778
79+ ## html
80+
81+ [ Show source in formatter.py:253] ( ../../../licensecheck/formatter.py#L253 )
82+
83+ Format to html.
84+
85+ #### Arguments
86+
87+ ----
88+ - ` myLice ` * License* - project license
89+ - ` packages ` * list[ PackageInfo] * - list of PackageCompats to format.
90+ - ` hide_parameters ` * list[ str] * - list of parameters to ignore in the output.
91+
92+ #### Returns
93+
94+ -------
95+ - ` str ` - string to send to specified output in html format
96+
97+ #### Signature
98+
99+ ``` python
100+ def html (
101+ myLice : License,
102+ packages : list[PackageInfo],
103+ hide_parameters : list[ucstr] | None = None ,
104+ ) -> str : ...
105+ ```
106+
107+ #### See also
108+
109+ - [ License] ( ./types.md#license )
110+ - [ PackageInfo] ( ./types.md#packageinfo )
111+
112+
113+
78114## markdown
79115
80- [ Show source in formatter.py:193 ] ( ../../../licensecheck/formatter.py#L193 )
116+ [ Show source in formatter.py:198 ] ( ../../../licensecheck/formatter.py#L198 )
81117
82118Format to markdown.
83119
@@ -112,7 +148,7 @@ def markdown(
112148
113149## plainText
114150
115- [ Show source in formatter.py:170 ] ( ../../../licensecheck/formatter.py#L170 )
151+ [ Show source in formatter.py:175 ] ( ../../../licensecheck/formatter.py#L175 )
116152
117153Format to ansi.
118154
@@ -147,7 +183,7 @@ def plainText(
147183
148184## raw
149185
150- [ Show source in formatter.py:248 ] ( ../../../licensecheck/formatter.py#L248 )
186+ [ Show source in formatter.py:278 ] ( ../../../licensecheck/formatter.py#L278 )
151187
152188Format to json.
153189
@@ -182,7 +218,7 @@ def raw(
182218
183219## rawCsv
184220
185- [ Show source in formatter.py:278 ] ( ../../../licensecheck/formatter.py#L278 )
221+ [ Show source in formatter.py:308 ] ( ../../../licensecheck/formatter.py#L308 )
186222
187223Format to csv.
188224
@@ -217,7 +253,7 @@ def rawCsv(
217253
218254## stripAnsi
219255
220- [ Show source in formatter.py:88 ] ( ../../../licensecheck/formatter.py#L88 )
256+ [ Show source in formatter.py:93 ] ( ../../../licensecheck/formatter.py#L93 )
221257
222258Strip ansi codes from a given string.
223259
0 commit comments