@ac-essentials/misc-util
    Preparing search index...

    Function escapePosixShSqe

    • Escape a string to be safely used in a single-quoted shell command.

      Example:

      const unsafe = "It's a test";
      const safe = escapePosixShSqe(unsafe);
      console.log(safe); // It'\''s a test

      Parameters

      • expr: string

      Returns string