UNPKG

@playform/pipe

Version:
2 lines (1 loc) 512 B
var s={Cache:{Search:"./",Folder:"./Cache"},Path:"./Target",Logger:2,Action:{Read:async({Input:e})=>await(await import("node:fs/promises")).readFile(e,{encoding:"utf-8"}),Wrote:async({Buffer:e})=>e,Passed:async e=>e&&!0,Failed:async({Input:e})=>`Error: Cannot process file ${e}!`,Accomplished:async({Input:e,Output:a})=>`Processed ${e} in ${a}.`,Fulfilled:async({File:e})=>e>0?`Successfully processed a total of ${e} ${e===1?"file":"files"}.`:!1,Changed:async e=>e},File:"**/*",Exclude:!1};export{s as default};