Translate

Archives

JavaScript Shell Command Line Processing

This post demonstrates how to provide robust support for command line argument processing in a JavaScript shell using the classical Unix getopts paradigm. It also demonstrates how to access environmental variables from a JavaScript shell.