How to use shell-quote

Comprehensive shell-quote code examples:

How to use shell-quote.parse:

2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
if(typeof(str) != "string")
    return;

cl.tprintln("blue", "SSH", "Processing command string '%s' from client at %s...", str, this.stream.session.client.ip);

let argv = ShellQuote.parse(str);
let current_argv = [];

for(const arg of argv)
{

How to use shell-quote.quote:

54
55
56
57
58
59
60
61
62
63
    return shellQuote.quote([args.join(" ")])
}

const position = parseInt(id, 10)
if (position >= 1 && position <= args.length) {
    return shellQuote.quote([args[position - 1]])
}

// Address default values
if (options != null) {