shell-quote is a npm module that allows the user to quote and parse shell commands. This should allow safe use for shell commands, since it should escape all malicious input.