We will be sunsetting Advisor during Jan, 2026 and will instead be providing information in Snyk Security DB.

You can begin to take advantage of Snyk Security DB today for a unified, package-centric experience.

How to use pug-strip-comments - 1 common examples

To help you get started, we’ve selected a few pug-strip-comments examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pugjs / babel-plugin-transform-react-pug / src / parse-pug.js View on Github external
export default function(str) {
  return filters.handleFilters(
    parse(
      stripComments(lex(str), {stripUnbuffered: true, stripBuffered: true}),
    ),
  );
}

pug-strip-comments

Strip comments from a Pug token stream (from the lexer)

MIT
Latest version published 6 years ago

Package Health Score

77 / 100
Full package analysis

Popular pug-strip-comments functions