Skip to main content

Function: loadCscLink()

loadCscLink(link, resourcesDir): Promise<string>

Resolves a CSC link to its text content.

Formats accepted:

  • Base64: detected by data:…;base64, prefix, length > 2048, or trailing =
  • File path: ~/…, file://…, absolute, or relative to cwd

Parameters

string

resourcesDir

string | undefined

Returns

Promise<string>