Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.1
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
amatya /
quiz1 /
node_modules /
strip-comments /
[ HOME SHELL ]
Name
Size
Permission
Action
lib
[ DIR ]
dr-xr-xr-x
CHANGELOG.md
4.35
KB
-rw-rw-rw-
LICENSE
1.07
KB
-rw-rw-rw-
README.md
8.22
KB
-rw-rw-rw-
index.js
3.57
KB
-rw-rw-rw-
package.json
2.09
KB
-rw-rw-rw-
Delete
Unzip
Zip
${this.title}
Close
Code Editor : index.js
/*! * strip-comments <https://github.com/jonschlinkert/strip-comments> * Copyright (c) 2014-present, Jon Schlinkert. * Released under the MIT License. */ 'use strict'; const compile = require('./lib/compile'); const parse = require('./lib/parse'); /** * Strip all code comments from the given `input`, including protected * comments that start with `!`, unless disabled by setting `options.keepProtected` * to true. * * ```js * const str = strip('const foo = "bar";// this is a comment\n /* me too *\/'); * console.log(str); * // => 'const foo = "bar";' * ``` * @name strip * @param {String} `input` string from which to strip comments * @param {Object} `options` optional options, passed to [extract-comments][extract-comments] * @option {Boolean} [options] `line` if `false` strip only block comments, default `true` * @option {Boolean} [options] `block` if `false` strip only line comments, default `true` * @option {Boolean} [options] `keepProtected` Keep ignored comments (e.g. `/*!` and `//!`) * @option {Boolean} [options] `preserveNewlines` Preserve newlines after comments are stripped * @return {String} modified input * @api public */ const strip = module.exports = (input, options) => { const opts = { ...options, block: true, line: true }; return compile(parse(input, opts), opts); }; /** * Strip only block comments. * * ```js * const strip = require('..'); * const str = strip.block('const foo = "bar";// this is a comment\n /* me too *\/'); * console.log(str); * // => 'const foo = "bar";// this is a comment' * ``` * @name .block * @param {String} `input` string from which to strip comments * @param {Object} `options` pass `opts.keepProtected: true` to keep ignored comments (e.g. `/*!`) * @return {String} modified string * @api public */ strip.block = (input, options) => { const opts = { ...options, block: true }; return compile(parse(input, opts), opts); }; /** * Strip only line comments. * * ```js * const str = strip.line('const foo = "bar";// this is a comment\n /* me too *\/'); * console.log(str); * // => 'const foo = "bar";\n/* me too *\/' * ``` * @name .line * @param {String} `input` string from which to strip comments * @param {Object} `options` pass `opts.keepProtected: true` to keep ignored comments (e.g. `//!`) * @return {String} modified string * @api public */ strip.line = (input, options) => { const opts = { ...options, line: true }; return compile(parse(input, opts), opts); }; /** * Strip the first comment from the given `input`. Or, if `opts.keepProtected` is true, * the first non-protected comment will be stripped. * * ```js * const output = strip.first(input, { keepProtected: true }); * console.log(output); * // => '//! first comment\nfoo; ' * ``` * @name .first * @param {String} `input` * @param {Object} `options` pass `opts.keepProtected: true` to keep comments with `!` * @return {String} * @api public */ strip.first = (input, options) => { const opts = { ...options, block: true, line: true, first: true }; return compile(parse(input, opts), opts); }; /** * Parses a string and returns a basic CST (Concrete Syntax Tree). * * ```js * const strip = require('..'); * const str = strip.block('const foo = "bar";// this is a comment\n /* me too *\/'); * console.log(str); * // => 'const foo = "bar";// this is a comment' * ``` * @name .block * @param {String} `input` string from which to strip comments * @param {Object} `options` pass `opts.keepProtected: true` to keep ignored comments (e.g. `/*!`) * @return {String} modified string * @api public */ strip.parse = parse;
Close