Replace transformer for panto.
It uses replacestream to replace and receives the same syntax.
panto.loadTransformer('replace');
panto.pick('**/*.js').replace({
replacements: [
[/\bfoo\b/, 'bar'],
[/(\d[4]-\d[2]-d[2])/, '$2/$3/$1']
]
});
- replacements: Array