diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..fffdcb5 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,22 @@ +name: Test + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [16.x, 18.x, 19.x] + steps: + - uses: actions/checkout@v3 + - name: Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d706ac2..0000000 --- a/.travis.yml +++ /dev/null @@ -1,3 +0,0 @@ -language: node_js -node_js: - - "0.8" diff --git a/LICENSE b/LICENSE index 09fb017..0b95322 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License -Copyright (c) 2012-2013 Corey Hart +Copyright (c) 2012-present Corey Hart Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/Makefile b/Makefile deleted file mode 100644 index 3d8a325..0000000 --- a/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -all: test - -clean: - @rm -rf build/results/ - -lint: - @node build/lint.js - -test: clean lint - @node build/test.js - -test-all: - @NODE_TEST_NO_SKIP=1 make test - -test-full: - @./build/full.sh diff --git a/README.md b/README.md index 1352c4e..45b7f5e 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,8 @@ +[![NPM version](https://badge.fury.io/js/argv.png)](http://badge.fury.io/js/argv) ![Test Runner](https://github.com/github/docs/actions/workflows/main.yml/badge.svg) [![Code Climate](https://codeclimate.com/github/codenothing/argv.png)](https://codeclimate.com/github/codenothing/argv) + # argv -argv is a nodejs module that does command line argument parsing. - -[![NPM version](https://badge.fury.io/js/argv.png)](http://badge.fury.io/js/argv) -[![Build Status](https://travis-ci.org/codenothing/argv.png?branch=master)](https://travis-ci.org/codenothing/argv) -[![Code Climate](https://codeclimate.com/github/codenothing/argv.png)](https://codeclimate.com/github/codenothing/argv) +`argv` is a simple, zero dependency, command line argument parser for NodeJS. For a more feature-full CLI parser, checkout [Commander.js](https://www.npmjs.com/package/commander) or [Yargs](https://www.npmjs.com/package/yargs) ### Installation @@ -12,7 +10,6 @@ argv is a nodejs module that does command line argument parsing. $ npm install argv ``` - ### Usage ```js @@ -21,7 +18,6 @@ var args = argv.option( options ).run(); -> { targets: [], options: {} } ``` - ### Run Runs the argument parser on the global arguments. Custom arguments array can be used by passing into this method @@ -31,25 +27,23 @@ Runs the argument parser on the global arguments. Custom arguments array can be argv.run(); // Parses array instead -argv.run([ '--option=123', '-o', '123' ]); +argv.run(["--option=123", "-o", "123"]); ``` - ### Options -argv is a strict argument parser, which means all options must be defined before parsing starts. +`argv` is a strict argument parser, which means all options must be defined before parsing starts. ```js argv.option({ - name: 'option', - short: 'o', - type: 'string', - description: 'Defines an option for your script', - example: "'script --option=value' or 'script -o value'" + name: "option", + short: "o", + type: "string", + description: "Defines an option for your script", + example: "'script --option=value' or 'script -o value'", }); ``` - ### Modules Modules are nested commands for more complicated scripts. Each module has it's own set of options that @@ -63,19 +57,18 @@ argv.mod({ }); ``` - ### Types -Types convert option values to useful js objects. They are defined along with each option. +Types convert option values to useful JS objects. They are defined along with each option. -* **string**: Ensure values are strings -* **path**: Converts value into a fully resolved path. -* **integer | int**: Converts value into an integer -* **float**: Converts value into a float number -* **boolean | bool**: Converts value into a boolean object. 'true' and '1' are converted to true, everything else is false. -* **csv**: Converts value into an array by splitting on comma's. -* **list**: Allows for option to be defined multiple times, and each value added to an array -* **[list|csv],[type]**: Combo type that allows you to create a list or csv and convert each individual value into a type. +- `string`: Ensure values are strings +- `path`: Converts value into a fully resolved path. +- `integer | int`: Converts value into an integer +- `float`: Converts value into a float number +- `boolean | bool`: Converts value into a boolean object. 'true' and '1' are converted to true, everything else is false. +- `csv`: Converts value into an array by splitting on comma's. +- `list`: Allows for option to be defined multiple times, and each value added to an array +- `[list|csv],[type]`: Combo type that allows you to create a list or csv and convert each individual value into a type. ```js argv.option([ @@ -117,7 +110,6 @@ $ script -s 2 -> 4 ``` - ### Version Defining the scripts version number will add the version option and print it out when asked. @@ -130,7 +122,6 @@ v1.0 ``` - ### Info Custom information can be displayed at the top of the help printout using this method @@ -145,25 +136,24 @@ Special script info ... Rest of Help Doc ... ``` - ### Clear -If you have competing scripts accessing the argv object, you can clear out any previous options that may have been set. +If you have competing scripts accessing the `argv` object, you can clear out any previous options that may have been set. ```js -argv.clear().option( [new options] ); +argv.clear().option([new options()]); ``` - ### Help -argv injects a default help option initially and on clears. The help() method triggers the help printout. +`argv` injects a default help option initially and on clears. The help() method triggers the help printout. ```js argv.help(); ``` ----- +--- + ### License ``` diff --git a/build/full.sh b/build/full.sh deleted file mode 100755 index 9df3ebe..0000000 --- a/build/full.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash -cd `dirname $0` -cd ../ -SRCROOT=${PWD} - -# Clean out and rebuild before running through each enviorment -make clean - -echo "===== NVM DIR::: $NVM_DIR ====" - -# Find each availiable node version and test with that version -for i in $( ls $NVM_DIR ) -do - if [[ $i =~ ^v ]]; then - echo "" - echo "" - echo "=== Node $i ===" - echo "" - - # Run test suite - "$NVM_DIR/$i/bin/node" "$SRCROOT/build/test.js" - - # Any non successful exit should be treated as full error - RESULT=$? - if [[ $RESULT != 0 ]]; then - exit 1 - fi - fi -done diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..2f0409a --- /dev/null +++ b/package-lock.json @@ -0,0 +1,463 @@ +{ + "name": "argv", + "version": "0.0.3pre", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "argv", + "version": "0.0.3pre", + "devDependencies": { + "munit": "0.0.7", + "nlint": "0.0.6" + }, + "engines": { + "node": ">=0.6.10" + } + }, + "node_modules/argv": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/argv/-/argv-0.0.2.tgz", + "integrity": "sha512-dEamhpPEwRUBpLNHeuCm/v+g0anFByHahxodVO/BbAarHVBBg2MccCwf9K+o1Pof+2btdnkJelYVUWjW/VrATw==", + "dev": true, + "engines": { + "node": ">=0.6.10" + } + }, + "node_modules/async": { + "version": "0.2.9", + "resolved": "https://registry.npmjs.org/async/-/async-0.2.9.tgz", + "integrity": "sha512-OAtM6mexGteNKdU29wcUfRW+VuBr94A3hx9h9yzBnPaQAbKoW1ORd68XM4CCAOpdL5wlNFgO29hsY1TKv2vAKw==", + "dev": true + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/cli": { + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/cli/-/cli-0.4.5.tgz", + "integrity": "sha512-dbn5HyeJWSOU58RwOEiF1VWrl7HRvDsKLpu0uiI/vExH6iNoyUzjB5Mr3IJY5DVUfnbpe9793xw4DFJVzC9nWQ==", + "dev": true, + "dependencies": { + "glob": ">= 3.1.4" + }, + "engines": { + "node": ">=0.2.5" + } + }, + "node_modules/console-browserify": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-0.1.6.tgz", + "integrity": "sha512-FJahZyF+dLKrC7h4DOq5JsHA+f0cLJD3TR1+0CK3n6phtdrVAPsZZKq+PZRmo2RYSOHvvs8kNhU4uRiSZUbSbA==", + "dev": true + }, + "node_modules/csslint": { + "version": "0.9.10", + "resolved": "https://registry.npmjs.org/csslint/-/csslint-0.9.10.tgz", + "integrity": "sha512-x2q/J6oNpWoPNk+HeI0Y1nc2mgcCK15WGXLrZbGnt2/sokiDeJT4P2A//pVvFt1ot78ZmbowQlkCHuW5Nxn4QQ==", + "dev": true, + "os": [ + "darwin", + "linux", + "win32" + ], + "bin": { + "csslint": "cli.js" + }, + "engines": { + "node": ">=0.2.0" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true + }, + "node_modules/glob": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", + "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^5.0.1", + "once": "^1.3.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob/node_modules/minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "node_modules/jshint": { + "version": "2.1.9", + "resolved": "https://registry.npmjs.org/jshint/-/jshint-2.1.9.tgz", + "integrity": "sha512-0TsBhEDx27w0qWAricAHib7wZul94XMYcGcUdiZbumH+8BRsSXBdwolHZCEu6qdjpQGYurw0GGUmsoull7TVvA==", + "dev": true, + "dependencies": { + "cli": "0.4.x", + "console-browserify": "0.1.x", + "minimatch": "0.x.x", + "shelljs": "0.1.x", + "underscore": "1.4.x" + }, + "bin": { + "jshint": "bin/jshint" + } + }, + "node_modules/json-lint": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/json-lint/-/json-lint-0.1.0.tgz", + "integrity": "sha512-QoBMCAo3sFnAl2nvCcrt5NmjqMRejlghhMvZ0ykhgfNpp7ukp1te7dP6q2o4fkvl03t08t75njni+y6S7jiHLg==", + "dev": true, + "engines": { + "node": ">=0.5" + } + }, + "node_modules/json5": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/json5/-/json5-0.2.0.tgz", + "integrity": "sha512-jzu3hxGhztAzldgKTbsW240mtPIgR6foddu9HqQgpv0ML2RcjE0mjyLro0XE92YAQYpTpcByY80vVzlKOM64xA==", + "dev": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": "*" + } + }, + "node_modules/lru-cache": { + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.7.3.tgz", + "integrity": "sha512-WpibWJ60c3AgAz8a2iYErDrcT2C7OmKnsWhIcHOjkUHFjkXncJhtLxNSqUmxRxRunpb5I8Vprd7aNSd2NtksJQ==", + "dev": true + }, + "node_modules/minimatch": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.4.0.tgz", + "integrity": "sha512-yJKJL1g3to7f4C/9LzHXTzNh550xKGefiCls9RS+DDdsDpKpndY49UDZW5sj/3yeac3Hl2Px3w5bT8bM/dMrWQ==", + "deprecated": "Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue", + "dev": true, + "dependencies": { + "lru-cache": "2", + "sigmund": "~1.0.0" + }, + "engines": { + "node": "*" + } + }, + "node_modules/munit": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/munit/-/munit-0.0.7.tgz", + "integrity": "sha512-ZpJ6HnSu9TcJffbhixhm+2e5/b80VBaQqlRKM4vtNIruvbvdVBn/myOcFPqchCxJz5pODFCItG/X0q8mn63q0Q==", + "dev": true, + "dependencies": { + "argv": "0.0.2", + "async": "0.2.9" + }, + "bin": { + "munit": "bin/munit" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/nlint": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/nlint/-/nlint-0.0.6.tgz", + "integrity": "sha512-EfhBtNjckiSAdawT6a1NxpsSaz7YBLVEH/zR0JDqPwF1zf/1OQ6+Yezh9lnFe277Q/F+PshH8E9Ja6xPWloqzw==", + "dev": true, + "dependencies": { + "argv": "0.0.2", + "async": "0.2.9", + "csslint": "0.9.10", + "jshint": "2.1.9", + "json-lint": "0.1.0", + "json5": "0.2.0" + }, + "bin": { + "nlint": "bin/nlint" + }, + "engines": { + "node": ">=0.6.10" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/shelljs": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.1.4.tgz", + "integrity": "sha512-UkXLBuUzAJwkal/0eYnQs8LpXQ4grKL5kPtA0RkUzhj1khUvw5Z2d717GRTRclDWQ+Y14yWkiM9cJX2CwSHxpw==", + "dev": true, + "bin": { + "shjs": "bin/shjs" + }, + "engines": { + "node": "*" + } + }, + "node_modules/sigmund": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/sigmund/-/sigmund-1.0.1.tgz", + "integrity": "sha512-fCvEXfh6NWpm+YSuY2bpXb/VIihqWA6hLsgboC+0nl71Q7N7o2eaCW8mJa/NLvQhs6jpd3VZV4UiUQlV6+lc8g==", + "dev": true + }, + "node_modules/underscore": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.4.4.tgz", + "integrity": "sha512-ZqGrAgaqqZM7LGRzNjLnw5elevWb5M8LEoDMadxIW3OWbcv72wMMgKdwOKpd5Fqxe8choLD8HN3iSj3TUh/giQ==", + "dev": true + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true + } + }, + "dependencies": { + "argv": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/argv/-/argv-0.0.2.tgz", + "integrity": "sha512-dEamhpPEwRUBpLNHeuCm/v+g0anFByHahxodVO/BbAarHVBBg2MccCwf9K+o1Pof+2btdnkJelYVUWjW/VrATw==", + "dev": true + }, + "async": { + "version": "0.2.9", + "resolved": "https://registry.npmjs.org/async/-/async-0.2.9.tgz", + "integrity": "sha512-OAtM6mexGteNKdU29wcUfRW+VuBr94A3hx9h9yzBnPaQAbKoW1ORd68XM4CCAOpdL5wlNFgO29hsY1TKv2vAKw==", + "dev": true + }, + "balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0" + } + }, + "cli": { + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/cli/-/cli-0.4.5.tgz", + "integrity": "sha512-dbn5HyeJWSOU58RwOEiF1VWrl7HRvDsKLpu0uiI/vExH6iNoyUzjB5Mr3IJY5DVUfnbpe9793xw4DFJVzC9nWQ==", + "dev": true, + "requires": { + "glob": ">= 3.1.4" + } + }, + "console-browserify": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-0.1.6.tgz", + "integrity": "sha512-FJahZyF+dLKrC7h4DOq5JsHA+f0cLJD3TR1+0CK3n6phtdrVAPsZZKq+PZRmo2RYSOHvvs8kNhU4uRiSZUbSbA==", + "dev": true + }, + "csslint": { + "version": "0.9.10", + "resolved": "https://registry.npmjs.org/csslint/-/csslint-0.9.10.tgz", + "integrity": "sha512-x2q/J6oNpWoPNk+HeI0Y1nc2mgcCK15WGXLrZbGnt2/sokiDeJT4P2A//pVvFt1ot78ZmbowQlkCHuW5Nxn4QQ==", + "dev": true + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true + }, + "glob": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", + "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^5.0.1", + "once": "^1.3.0" + }, + "dependencies": { + "minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "dev": true, + "requires": { + "brace-expansion": "^2.0.1" + } + } + } + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "jshint": { + "version": "2.1.9", + "resolved": "https://registry.npmjs.org/jshint/-/jshint-2.1.9.tgz", + "integrity": "sha512-0TsBhEDx27w0qWAricAHib7wZul94XMYcGcUdiZbumH+8BRsSXBdwolHZCEu6qdjpQGYurw0GGUmsoull7TVvA==", + "dev": true, + "requires": { + "cli": "0.4.x", + "console-browserify": "0.1.x", + "minimatch": "0.x.x", + "shelljs": "0.1.x", + "underscore": "1.4.x" + } + }, + "json-lint": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/json-lint/-/json-lint-0.1.0.tgz", + "integrity": "sha512-QoBMCAo3sFnAl2nvCcrt5NmjqMRejlghhMvZ0ykhgfNpp7ukp1te7dP6q2o4fkvl03t08t75njni+y6S7jiHLg==", + "dev": true + }, + "json5": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/json5/-/json5-0.2.0.tgz", + "integrity": "sha512-jzu3hxGhztAzldgKTbsW240mtPIgR6foddu9HqQgpv0ML2RcjE0mjyLro0XE92YAQYpTpcByY80vVzlKOM64xA==", + "dev": true + }, + "lru-cache": { + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.7.3.tgz", + "integrity": "sha512-WpibWJ60c3AgAz8a2iYErDrcT2C7OmKnsWhIcHOjkUHFjkXncJhtLxNSqUmxRxRunpb5I8Vprd7aNSd2NtksJQ==", + "dev": true + }, + "minimatch": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.4.0.tgz", + "integrity": "sha512-yJKJL1g3to7f4C/9LzHXTzNh550xKGefiCls9RS+DDdsDpKpndY49UDZW5sj/3yeac3Hl2Px3w5bT8bM/dMrWQ==", + "dev": true, + "requires": { + "lru-cache": "2", + "sigmund": "~1.0.0" + } + }, + "munit": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/munit/-/munit-0.0.7.tgz", + "integrity": "sha512-ZpJ6HnSu9TcJffbhixhm+2e5/b80VBaQqlRKM4vtNIruvbvdVBn/myOcFPqchCxJz5pODFCItG/X0q8mn63q0Q==", + "dev": true, + "requires": { + "argv": "0.0.2", + "async": "0.2.9" + } + }, + "nlint": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/nlint/-/nlint-0.0.6.tgz", + "integrity": "sha512-EfhBtNjckiSAdawT6a1NxpsSaz7YBLVEH/zR0JDqPwF1zf/1OQ6+Yezh9lnFe277Q/F+PshH8E9Ja6xPWloqzw==", + "dev": true, + "requires": { + "argv": "0.0.2", + "async": "0.2.9", + "csslint": "0.9.10", + "jshint": "2.1.9", + "json-lint": "0.1.0", + "json5": "0.2.0" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "shelljs": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.1.4.tgz", + "integrity": "sha512-UkXLBuUzAJwkal/0eYnQs8LpXQ4grKL5kPtA0RkUzhj1khUvw5Z2d717GRTRclDWQ+Y14yWkiM9cJX2CwSHxpw==", + "dev": true + }, + "sigmund": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/sigmund/-/sigmund-1.0.1.tgz", + "integrity": "sha512-fCvEXfh6NWpm+YSuY2bpXb/VIihqWA6hLsgboC+0nl71Q7N7o2eaCW8mJa/NLvQhs6jpd3VZV4UiUQlV6+lc8g==", + "dev": true + }, + "underscore": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.4.4.tgz", + "integrity": "sha512-ZqGrAgaqqZM7LGRzNjLnw5elevWb5M8LEoDMadxIW3OWbcv72wMMgKdwOKpd5Fqxe8choLD8HN3iSj3TUh/giQ==", + "dev": true + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true + } + } +} diff --git a/package.json b/package.json index be6885d..6ba310d 100644 --- a/package.json +++ b/package.json @@ -1,21 +1,39 @@ { - "name": "argv", - "description": "CLI Argument Parser", - "homepage": "http://codenothing.github.com/argv/", - "keywords": [ "cli", "argv", "options" ], - "author": "Corey Hart ", - "version": "0.0.3pre", - "main": "./index.js", - "engines": { - "node": ">=0.6.10" - }, - "scripts": { - "test": "make test" - }, - "dependencies": { - }, - "devDependencies": { - "nlint": "0.0.6", - "munit": "0.0.7" - } + "name": "argv", + "description": "CLI Argument Parser", + "author": "Corey Hart ", + "version": "0.0.3", + "main": "./index.js", + "homepage": "http://codenothing.github.com/argv/", + "repository": { + "type": "git", + "url": "git://github.com/codenothing/argv.git" + }, + "keywords": [ + "cli", + "argv", + "options" + ], + "files": [ + "lib", + "index.js", + "package.json", + "package-lock.json", + "README.md", + "CHANGELOG.md", + "LICENSE" + ], + "engines": { + "node": ">=0.6.10" + }, + "scripts": { + "clean": "rm -rf build/results", + "lint": "node build/lint.js", + "test": "npm run clean && npm run lint && node build/test.js" + }, + "dependencies": {}, + "devDependencies": { + "nlint": "0.0.6", + "munit": "0.0.7" + } }