panto-transformer-replace
v0.1.2
Published
Replace transformer for panto
Downloads
2
Maintainers
Readme
panto-transformer-replace
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']
]
});
options
- replacements: Array