Javascript Command Line Options for Node.js
Posted: April 9th, 2010 | Author: Joey | Filed under: Coding | Tags: javascript, node.js | 6 Comments »I have recently been playing with node.js. If you haven’t read about it yet, I recommend you do and that you try it out. I wrote a small app using it and hopefully I’ll get around to writing some articles about that application. In the meantime, I’m releasing a library I wrote for parsing command line options in javascript. This library will work with node.js.
The repository at bitbucket contains examples, so I’m not going to write much about the library here except to say to go here and get it! Let me know if you find it useful and post any bugs you find to the issue tracker.
Bitbucket Repository: http://www.bitbucket.org/mazzarelli/js-opts
js-opts Releases: http://www.bitbucket.org/mazzarelli/js-opts/downloads/

Thanks, this is what I need! bookmarked!
Hey, thanks for a great lib. I would definitely use if you continue supporting it.
Are you going to fix this warning:
The ‘sys’ module is now called ‘util’. It should have a similar interface.
?
Thanks,
Roman
Roman,
I have updated the repo at bitbucket, for now you can clone that and do an NPM install from there.
As soon as I can figure out how to recover my NPM password, I’ll update it in the registry.
Thanks for the heads-up.
- Joey
You should be able to do an “npm update” now.
Do you have an example of this anywhere. I’m looking to create a general purpose command line Library for JS. Using a combination of Jlex and Yacc. Was wondering if i could reuse yours.
The wiki page has a number of examples
http://bitbucket.org/mazzarelli/js-opts/wiki/Home