UNPKG

@ibgib/helper-gib

Version:

common helper/utils/etc used in ibgib libs. Node v19+ needed for heavily-used isomorphic webcrypto hashing consumed in both node and browsers.

26 lines (19 loc) 831 B
/** * @module node-helper.respec * * i'm commenting this out, but it's useful for manual testing. at some point in * the future, it would probably be good to flesh this out for realz. */ // import { HELPER_LOG_A_LOT } from '../constants.mjs'; // import { clone, delay, unique } from "./utils-helper.mjs"; // import { respecfully, iReckon, ifWe, firstOfEach, ifWeMight } from '../respec-gib/respec-gib.mjs'; // let maam = `[${import.meta.url}]`, sir = maam; // import { promptForSecret } from './node-helper.mjs'; // const logalot = HELPER_LOG_A_LOT; // await respecfully(sir, 'prompts', async () => { // await ifWe(sir, 'promptForSecret', async () => { // let secret = await promptForSecret({ confirm: true }); // console.log(secret); // iReckon(sir, true).isGonnaBe(true); // }); // });