Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including cl-options with all npm packages installed. Try it out:

var clOptions = require("cl-options")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

cl-options v0.0.2

Command line options parser, it accepts options starting with -- and a string of any length and can associate to it a shortcut which will be a letter preceded by one - only. many shortcuts can be bounded after a single dash to form somethign like -abcde where a b c d e are shortcuts for command line options. options are by default optional but they may be set as mandatory, options don't have an expected value by default but they can be set to have one. The settings for the possible options are passed to the constructor as an array of js objects.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free