UNPKG

fws

Version:

Fws is a workflow management tool that focuses on global automation tasks.

12 lines (11 loc) 299 B
module.exports = (string)=>{ let s = string; const fs = require('fs-extra'); if(global.fws && typeof global.fws.globalReplace === 'object'){ let obj = global.fws.globalReplace; for(let i in obj){ s = s.replaceAll(i,obj[i]); }; }; return s; };