You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Say I have to convert a npm command into pnpm, yarn and bun.
I have to call the convert 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:
One to many (convert one command into multiple package managers' equivalent)
convertMultiple("npm i next",["pnpm","bun"])// ["pnpm add next", "bun add next"]
Many to one (convert many commands into one 1 package manager's equivalent)
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.
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 the
convert
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:
The text was updated successfully, but these errors were encountered: