• Skull giver
    link
    fedilink
    English
    11
    edit-2
    8 months ago

    The npm package flip-text is the closest that I know of:

    const flip = require('flip-text');
    
    const str = "dobo";
    const flippedStr = flip(str);
    
    console.log(flippedStr); // Output: "qoqo"
    

    However, with great libraries like is-thirteen I’m sure JavaScript will some day gain a proper flipping library.