UNPKG

denoify

Version:

For NPM module authors that would like to support Deno but do not want to write and maintain a port.

16 lines (13 loc) 408 B
export function getIsDryRun() { const isDryRun = !(process.env["DRY_RUN"] === "0"); if (isDryRun) { console.log( [ "Executing the script in dry mode, no operation will be actually performed.", "To disable dry mode set DRY_RUN environnement variable to '0'", "" ].join("\n") ); } return { isDryRun }; }