UNPKG

statistician

Version:

Create and compare files stats, and webpack bundle stats

7 lines (5 loc) 169 B
const characters = [ '<', ]; const pattern = new RegExp(`[${characters.join('|')}]`, 'gm'); module.exports = string => string.replace(pattern, match => `\\${match}`);