Skip to main content

parse_bun_description

Function parse_bun_description 

Source
pub fn parse_bun_description(content: &[u8]) -> Vec<String>
Expand description

Parse a leading // comment block from a bun source (.ts/.js/.mts/.mjs) as its description — the JS/TS-comment mirror of parse_script_description’s # handling for .sh/.ps1. An optional #! shebang is skipped; // lines are collected (a bare // is a blank line); the first non-comment line ends the block; trailing blank lines are trimmed. There are no shine-dest/shine-template annotations to skip here — those are #/.sh-only.