• Generates a script name from a given string, ensuring uniqueness within a specified context.

    Parameters

    • n: string

      The input string to generate the script name from.

    • requireUniqueIn: string[] | {
          [k: string]: any;
      }

      The context (array or object) in which the generated name should be unique.

    Returns string

    A string representing the generated script name.