replace-case

Like String.prototype.replace() but attempts to match the casing of the substring being replaced.

Browse on unpkg