title: Search string and replace with prefix in NodeJS
body: <p>I would like browse file with NodeJS and add prefix to each <code>*.png</code>/<code>.webm</code> string.</p>
  
  <p>For example :</p>
  
  <p><code>hello-guys.png</code> => <code>/custom/path/to/hello-guys.png</code>.</p>
  
  <p>I've try with <a href="https://github.com/adamreisnz/replace-in-file" rel="nofollow noreferrer">this package</a>, but can't add prefix :</p>
  
  <pre><code>const options = {
    files: path.join(__dirname, '../data.js'),
    from: [
      /.png/g,
      /.webm/g
    ],
    // to: ['bar', 'bax']
    to: ['foo', 'bar']
  };
  
  replace(options)
    .then(changes =&gt; {
      console.log('Modified files:', changes.join(', '));
    })
    .catch(error =&gt; {
      console.error('Error occurred:', error);
    });
  </code></pre>
  
  <p>Anyone know help me ?</p>
  
  <p>Thank you community :)</p>