Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tools for writing scripts with node.js
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README
package.json
scriptTools.js

README

===Node Script Tools===
<peterbraden@peterbraden.co.uk>

A few functions to aid writing commandline scripts with node.js

== Install == 
$> npm install scriptTools

== Use ==
var st = require('scriptTools');



st.optParse()
// returns [options, args]
// ie. 
// $>node myscript.js -a -b=hello foo bar
// returns [{'-a':true, '-b':'hello'}, [foo, bar]]

st.loadConfig(filename, success)
// loads JSON configs from ~/filename and calls success function with them.


Something went wrong with that request. Please try again.