Gathering detailed insights and metrics for pug-strip-comments
Gathering detailed insights and metrics for pug-strip-comments
Gathering detailed insights and metrics for pug-strip-comments
Gathering detailed insights and metrics for pug-strip-comments
Pug – robust, elegant, feature rich template engine for Node.js
npm install pug-strip-comments
Typescript
Module System
Node Version
NPM Version
pug@3.0.3
Updated on May 24, 2024
pug-code-gen@3.0.3
Updated on May 24, 2024
pug-error@2.1.0
Updated on May 24, 2024
pug@3.0.2
Updated on Feb 28, 2021
pug-lexer@5.0.1
Updated on Feb 28, 2021
pug-runtime@3.0.1
Updated on Feb 28, 2021
JavaScript (78.47%)
Pug (14.98%)
HTML (5.98%)
TypeScript (0.49%)
CoffeeScript (0.04%)
Stylus (0.03%)
CSS (0.01%)
Total Downloads
391,452,527
Last Day
86,782
Last Week
1,688,735
Last Month
7,293,564
Last Year
77,464,190
21,818 Stars
2,573 Commits
1,947 Forks
539 Watchers
11 Branches
248 Contributors
Updated on Jul 06, 2025
Minified
Minified + Gzipped
Latest Version
2.0.0
Package Id
pug-strip-comments@2.0.0
Size
2.39 kB
NPM Version
6.14.4
Node Version
12.16.3
Published on
May 25, 2020
Cumulative downloads
Total Downloads
Strips comments from Pug token stream
npm install pug-strip-comments
1var lex = require('pug-lexer'); 2var stripComments = require('pug-strip-comments'); 3 4var tokens = lex('//- unbuffered\n// buffered'); 5// [ { type: 'comment', line: 1, val: ' unbuffered', buffer: false }, 6// { type: 'newline', line: 2 }, 7// { type: 'comment', line: 2, val: ' buffered', buffer: true }, 8// { type: 'eos', line: 2 } ] 9 10// Only strip unbuffered comments (default) 11stripComments(tokens, { filename: 'pug' }); 12// [ { type: 'newline', line: 2 }, 13// { type: 'comment', line: 2, val: ' buffered', buffer: true }, 14// { type: 'eos', line: 2 } ] 15 16// Only strip buffered comments (when you want to play a joke on your coworkers) 17stripComments(tokens, { filename: 'pug', stripUnbuffered: false, stripBuffered: true }); 18// [ { type: 'comment', line: 1, val: ' unbuffered', buffer: false }, 19// { type: 'newline', line: 2 }, 20// { type: 'eos', line: 2 } ] 21 22// Strip both (if you want Pug VERY clean) 23stripComments(tokens, { filename: 'pug', stripBuffered: true }); 24// [ { type: 'newline', line: 2 }, 25// { type: 'eos', line: 2 } ]
MIT
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
no binaries found in the repo
Reason
Found 15/30 approved changesets -- score normalized to 5
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
license file not detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
35 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreLast Day
-8.2%
86,782
Compared to previous day
Last Week
-7.1%
1,688,735
Compared to previous week
Last Month
0.9%
7,293,564
Compared to previous month
Last Year
4.3%
77,464,190
Compared to previous year