Skip to main content

extract_sourcemap_content

Function extract_sourcemap_content 

Source
pub fn extract_sourcemap_content(json_text: &str) -> Option<String>
Expand description

Extract source content from a source map JSON file.

Parses the JSON and extracts all entries from sourcesContent, combining them with newlines for license detection.

Returns Some(combined_text) if successfully parsed with content. Returns None if JSON parsing fails or no sourcesContent exists.