Guest User

Untitled

a guest
Mar 24th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. const replace = require('replace-in-file');
  2. const options = {
  3. files: './**/*.txt'
  4. from: /oneWord/g,
  5. to: 'anotherWord,
  6.  
  7. };
  8.  
  9. const replace = require('replace-in-file');
  10. var from = '/'+ process.argv[3] + '/g';
  11. const options = {
  12. files: process.argv[2],
  13. from: process.argv[3],
  14. to: process.argv[4],
  15.  
  16. };
Add Comment
Please, Sign In to add comment