UNPKG

@chainsafe/strip-comments

Version:

Strip line and/or block comments from a string. Blazing fast, and works with JavaScript, Sass, CSS, Less.js, and a number of other languages.

15 lines (14 loc) 303 B
export class Node { type: string; match: boolean; newline: string; value: string; nodes: []; readonly protected: boolean; constructor(node: Node); } export class Block extends Node { readonly protected: boolean; constructor(node: Node); push(node: Node): void; }