UNPKG

299 BJavaScriptView Raw
1module.exports = (string)=>{
2 let s = string;
3 const fs = require('fs-extra');
4
5 if(global.fws && typeof global.fws.globalReplace === 'object'){
6 let obj = global.fws.globalReplace;
7 for(let i in obj){
8 s = s.replaceAll(i,obj[i]);
9 };
10 };
11 return s;
12};
\No newline at end of file