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