Open Jay-Karia opened 2 months ago
I like the idea of this proposal, but I'm wary of adding too much complexity to this library. I feel like we'd want to rewrite it so that it first processed a string into an AST-like structure (e.g. type: "install", arg: "react nextjs tailwind", arguments: "save-dev") and then converted that to the desired format.
Say there's a block with two commands that needs to be converted
the AST like structure might be inefficient.
Is your feature request related to a problem? Please describe. Say I have to convert a
npm
command intopnpm
,yarn
andbun
. I have to call theconvert
function 3 times to accomplish the task.There should be a convenient way to do this.
Describe the solution you'd like I would like to introduce a new function
convertMultiple
to fulfill this task.There could different use cases for it: