commander-pojo
transform your parsed commander.js instance into a pojo
install
npm install --save commander-pojo
usage
suppose you run the following: some-bin --test-flag test-cmd
// some-bin#!/usr/bin/env nodevar cpojo = var program = program arguments'<test-cmd> [test-arg]' action { /* ... */ } console // <== `program instanceof Commander`, loads of _privateCommanderStuff, +moreconsole // <== { testFlag: true }. simple pojo!