ShellCommand is a child_process wrapper for Linux that enables you to execute async shell commands easily from within NodeJS.
To use ShellCommand, import the ShellCommand class and create an instance. Then use the executeAsync() function to execute the command.
If an error is encountered, the error text from the command is returned, otherwise you will get the output of the command.
// Use await with try catch or promise().then().catch();
import { ShellCommand } from 'shellcommand';
const pwd = new ShellCommand();
result = await pwd.executeAsync(`pwd`);
console.log(result); // Should return the output of pwd