Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const replace = require('replace-in-file');
- const options = {
- files: './**/*.txt'
- from: /oneWord/g,
- to: 'anotherWord,
- };
- const replace = require('replace-in-file');
- var from = '/'+ process.argv[3] + '/g';
- const options = {
- files: process.argv[2],
- from: process.argv[3],
- to: process.argv[4],
- };
Add Comment
Please, Sign In to add comment