Javascript Command Line Options for Node.js

Posted: April 9th, 2010 | Author: | Filed under: Coding | Tags: , | 7 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:
js-opts Releases:

7 Comments on “Javascript Command Line Options for Node.js”

  1. 1 eugs51 said at 7:09 pm on June 28th, 2010:

    Thanks, this is what I need! bookmarked!

  2. 2 drapeko said at 4:53 am on October 28th, 2010:

    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.


  3. 3 Joey said at 8:36 am on October 28th, 2010:


    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

  4. 4 Joey said at 10:24 am on October 28th, 2010:

    You should be able to do an “npm update” now.

  5. 5 amit shanbhag said at 1:21 pm on December 13th, 2010:

    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.

  6. 6 Joey said at 1:23 pm on December 13th, 2010:

    The wiki page has a number of examples

  7. 7 said at 8:58 pm on April 2nd, 2014:

    It’s going to be finish of mine day, except before ending I am reading this enormous paragraph
    to improve my know-how.

    My web page … Payday Loan No Credit Check Canada (

Don't be shy...