detectCodeLanguage
function exported by @mwillbanks/tuil-code.
function
Public function exported by @mwillbanks/tuil-code.
export function detectCodeLanguage(source: string, filename?: string): string;Members
This declaration has no public members.
Parameters
| Member | Type | Required | Description | Related types |
|---|---|---|---|---|
source | string | Yes | Supplies the source value as string. | — |
filename | string | No | Supplies the filename value as string. | — |
Returns
string — Returns a value that satisfies string.
Related types: —
Throws
No thrown errors are documented for this declaration.
Related types
No package-local related types.
Source
View the secondary source reference