• Skull giver@popplesburger.hilciferous.nl
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    3 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.