UNPKG

dolphin-tool

Version:

🐬 dolphin-tool binaries and wrapper for Node.js.

18 lines 623 B
import DolphinToolBin from './dolphinToolBin.js'; export default { /** * Returns the dolphin-tool help message. */ async help(options, attempt = 1) { const output = await DolphinToolBin.run(['--help']); // Try to detect failures, and then retry them automatically if (!output.trim() && attempt <= 3) { await new Promise((resolve) => { setTimeout(resolve, Math.random() * (2 ** (attempt - 1) * 20)); }); return this.help(options, attempt + 1); } return output; }, }; //# sourceMappingURL=dolphinToolHelp.js.map