opts.js is a Javascript helper library for command-line applications, for accepting and parsing command-line arguments, flags and options, and automatically generating a useful help message. Introduction to Opts.js Why choose opts.js over something bigger and better? Small : Under 10kb, uncompressed. Stable : Relatively unchanged since 2010. See changelog. Standalone : No package manager necessary, no compiling needed. See src/opts.js. Tested : Millions of downloads per year. See npm/opts. Quick-Start example The following example set up a custom "version" function, and opts in to the automatic help message.
pageboy Write your shell scripts in any combination of scripting languages. Example Script example.pb #!/usr/bin/env pageboy echo in Bash $PAGE php echo back to Bash #!/usr/bin/env php <?php echo "in PHP\n"; Running the following, produces: chmod +x ./example.pb ./example.pb in Bash in PHP back to Bash You can mix and match all you want. If your script uses valid shebangs, it will work. If it doesn’t, it’s a bug and please let me know.