We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Replace parts of string using map.
const mapReplace = require('@extra-string/map-replace'); // mapReplace(<string>, <map>) mapReplace('alpha beta', new Map().set('alpha', 'α').set('beta', 'β')); // 'α β' mapReplace('gamma DELTA', new Map().set('gamma', 'γ').set('delta', 'δ')); // 'γ DELTA' mapReplace('Epsilon ZETA', new Map().set(/epsilon/gi, 'ε').set(/zeta/gi, 'ζ')); // 'ε ζ'
There was an error while loading. Please reload this page.