I found this answer Is there any way to generate the same UUID based on the seed string in JDK or some library? but this is the java way.
I need to the same, but in javascript, i can use any npm module or any library or custom function.
You can use UUID this way to get always the same UUID for your input String:
String aString="JUST_A_TEST_STRING";
String result = UUID.nameUUIDFromBytes(aString.getBytes()).toString();