Counts the number of export statements in a given code string.
The code string to analyze.
The number of export statements found in the code.
const code = ` export const foo = 42; export function bar() { return "Hello, world!"; }`;const count = tsCountExports(code);//=> 2 Copy
const code = ` export const foo = 42; export function bar() { return "Hello, world!"; }`;const count = tsCountExports(code);//=> 2
Generated using TypeDoc
Counts the number of export statements in a given code string.