Command-Line Argument Sorting and Parsing, for JavaScript
CLASP stands for Command-Line Argument Sorting and Parsing. The first CLASP library was a C library with a C++ wrapper. There have been several implementations in other languages. CLASP.js is the JavaScript version.
T.B.C.
Install using npm install clasp-js
.
Use it via require('clasp-js')
.
NOTE: the name clasp-js follows NPM's package-name rules, but breaks with one of the tips - the one about not including js or node in the name - because there are multiple CLASP libraries, and there already exists a clasp package in NPM.
T.B.C.
Examples are provided in the examples
directory, along with a markdown description for each. A detailed list TOC of them is provided in EXAMPLES.md.
Defect reports, feature requests, and pull requests are welcome on https://github.com/synesissoftware/CLASP.js.
- assert (Development-only);
- memory-streams (Development-only);
- mocha (Development-only);
-
CLASP.js is inspired by the C/C++ CLASP library, which is documented in the articles:
-
An Introduction to CLASP, Matthew Wilson, CVu, January 2012;
-
Anatomy of a CLI Program written in C, Matthew Wilson, CVu, September 2012; and
-
Anatomy of a CLI Program written in C++, Matthew Wilson, CVu, September 2015;
CLASP.js is released under the 3-clause BSD license. See LICENSE for details.