Closed gajus closed 6 months ago
The current API feels awkward, whereby settings are applied after the command, i.e.
$`date` .nothrow() .quiet();
I'd like to be able to do something like
const $ = createZx({ nothrow: true, queit: true, }); $`date`
I believe v8 will bring smth similar. Here's a proposal:
Yes, I'd like to refactor the api to allow more easy customizations.
$({nothrow: true})`cmd`
The current API feels awkward, whereby settings are applied after the command, i.e.
I'd like to be able to do something like