403Webshell
Server IP : 217.160.0.212  /  Your IP : 216.73.217.70
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1073854427 ( 1073854427)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/share/nodejs/istanbul/lib/util/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/nodejs/istanbul/lib/util/help-formatter.js
/*
 Copyright (c) 2012, Yahoo! Inc.  All rights reserved.
 Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
 */

var OPT_PREFIX = "      ",
    OPT_START = OPT_PREFIX.length,
    TEXT_START = 14,
    STOP = 80,
    wrap = require('wordwrap')(TEXT_START, STOP),
    paraWrap = require('wordwrap')(1, STOP);

function formatPara(text) {
    return paraWrap(text);
}

function formatOption(option, helpText) {
    var formattedText = wrap(helpText);

    if (option.length > TEXT_START - OPT_START - 2) {
        return OPT_PREFIX + option + '\n' + formattedText;
    } else {
        return OPT_PREFIX + option + formattedText.substring((OPT_PREFIX + option).length);
    }
}

module.exports = {
    formatPara: formatPara,
    formatOption: formatOption
};

Youez - 2016 - github.com/yon3zu
LinuXploit