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
With npx you don't have to have the module installed directly on your computer. So you can do something like:
npx cowsay Hello!
But, this doesn't work:
npx cowthink Hello!
Is this because npx runs the module name cowsay and just runs the first command it finds in the "bin" field in package.json? Is there a way to run cowthink directly from npx as it is or with some code changes to the module?
This is relevant to me as I'm using your module to teach myself how to create node cli modules and would be interested in running multiple cli commands from a module invoked directly via npm remote calls.
The text was updated successfully, but these errors were encountered:
Cowsay.main - this is the main entry point, it simply delegates to Cowsay.say unless it finds the flag --cowthink. The other methods do not recognise this arg.
With npx you don't have to have the module installed directly on your computer. So you can do something like:
npx cowsay Hello!
But, this doesn't work:
npx cowthink Hello!
Is this because npx runs the module name cowsay and just runs the first command it finds in the "bin" field in package.json? Is there a way to run
cowthink
directly from npx as it is or with some code changes to the module?This is relevant to me as I'm using your module to teach myself how to create node cli modules and would be interested in running multiple cli commands from a module invoked directly via npm remote calls.
The text was updated successfully, but these errors were encountered: