Reputation: 102785
I am writing a JavaScript API and I have come to a situation where I would need to create command line commands for developers to use. However, I am not sure how should I do it (Powershell vs Bash), maybe using Java or C#?
If you are making a JavaScript library, what technology would you use for command line tools?
Upvotes: 2
Views: 150
Reputation: 262929
Why not use Javascript itself, since your API already uses it?
On *NIX systems, there are tools such as jsc that allow you to evaluate Javascript code from the command line. And of course, Windows has cscript.
Upvotes: 1
Reputation: 5338
It would be perfect to use JS to create command line tools, since all your project will be in JS. One way to do it is to compile Google V8 JS engine.
Another common language for CL tools is Python. It is also scripting and portable language.
Upvotes: 1