Skip to main content

has_wrapper_marker

Function has_wrapper_marker 

Source
pub fn has_wrapper_marker(content: &[u8]) -> bool
Expand description

What: Report whether script bytes contain a TypeScript-wrapper marker. Why: This is the version-independent recognition of the other wrapper’s launchers.

In TS you’d write (pseudocode):

function hasWrapperMarker(content: Buffer): boolean;