From cc97a4dd2a967e1c2273bd5f4c5f49a5bf2e2585 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 27 Mar 2019 21:01:33 +0100 Subject: remove node_modules --- node_modules/nomnom/.npmignore | 1 - node_modules/nomnom/LICENSE | 20 - node_modules/nomnom/README.md | 325 ------------ .../nomnom/node_modules/ansi-styles/ansi-styles.js | 38 -- .../nomnom/node_modules/ansi-styles/package.json | 52 -- .../nomnom/node_modules/ansi-styles/readme.md | 65 --- node_modules/nomnom/node_modules/chalk/index.js | 63 --- .../chalk/node_modules/.bin/strip-ansi | 1 - .../nomnom/node_modules/chalk/package.json | 50 -- node_modules/nomnom/node_modules/chalk/readme.md | 158 ------ node_modules/nomnom/node_modules/strip-ansi/cli.js | 27 - .../nomnom/node_modules/strip-ansi/index.js | 4 - .../nomnom/node_modules/strip-ansi/package.json | 53 -- .../nomnom/node_modules/strip-ansi/readme.md | 46 -- node_modules/nomnom/nomnom.js | 584 --------------------- node_modules/nomnom/num-vals-fix.diff | 31 -- node_modules/nomnom/package.json | 28 - node_modules/nomnom/test.js | 23 - node_modules/nomnom/test/callback.js | 33 -- node_modules/nomnom/test/commands.js | 120 ----- node_modules/nomnom/test/expected.js | 60 --- node_modules/nomnom/test/matching.js | 70 --- node_modules/nomnom/test/option.js | 44 -- node_modules/nomnom/test/transform.js | 65 --- node_modules/nomnom/test/usage.js | 121 ----- node_modules/nomnom/test/values.js | 75 --- 26 files changed, 2157 deletions(-) delete mode 100644 node_modules/nomnom/.npmignore delete mode 100644 node_modules/nomnom/LICENSE delete mode 100644 node_modules/nomnom/README.md delete mode 100644 node_modules/nomnom/node_modules/ansi-styles/ansi-styles.js delete mode 100644 node_modules/nomnom/node_modules/ansi-styles/package.json delete mode 100644 node_modules/nomnom/node_modules/ansi-styles/readme.md delete mode 100644 node_modules/nomnom/node_modules/chalk/index.js delete mode 120000 node_modules/nomnom/node_modules/chalk/node_modules/.bin/strip-ansi delete mode 100644 node_modules/nomnom/node_modules/chalk/package.json delete mode 100644 node_modules/nomnom/node_modules/chalk/readme.md delete mode 100755 node_modules/nomnom/node_modules/strip-ansi/cli.js delete mode 100644 node_modules/nomnom/node_modules/strip-ansi/index.js delete mode 100644 node_modules/nomnom/node_modules/strip-ansi/package.json delete mode 100644 node_modules/nomnom/node_modules/strip-ansi/readme.md delete mode 100644 node_modules/nomnom/nomnom.js delete mode 100644 node_modules/nomnom/num-vals-fix.diff delete mode 100644 node_modules/nomnom/package.json delete mode 100644 node_modules/nomnom/test.js delete mode 100644 node_modules/nomnom/test/callback.js delete mode 100644 node_modules/nomnom/test/commands.js delete mode 100644 node_modules/nomnom/test/expected.js delete mode 100644 node_modules/nomnom/test/matching.js delete mode 100644 node_modules/nomnom/test/option.js delete mode 100644 node_modules/nomnom/test/transform.js delete mode 100644 node_modules/nomnom/test/usage.js delete mode 100644 node_modules/nomnom/test/values.js (limited to 'node_modules/nomnom') diff --git a/node_modules/nomnom/.npmignore b/node_modules/nomnom/.npmignore deleted file mode 100644 index 3c3629e64..000000000 --- a/node_modules/nomnom/.npmignore +++ /dev/null @@ -1 +0,0 @@ -node_modules diff --git a/node_modules/nomnom/LICENSE b/node_modules/nomnom/LICENSE deleted file mode 100644 index 8092929fe..000000000 --- a/node_modules/nomnom/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -Copyright (c) 2010 Heather Arthur - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/nomnom/README.md b/node_modules/nomnom/README.md deleted file mode 100644 index 5864a0956..000000000 --- a/node_modules/nomnom/README.md +++ /dev/null @@ -1,325 +0,0 @@ -# nomnom -nomnom is an option parser for node. It noms your args and gives them back to you in a hash. - -```javascript -var opts = require("nomnom") - .option('debug', { - abbr: 'd', - flag: true, - help: 'Print debugging info' - }) - .option('config', { - abbr: 'c', - default: 'config.json', - help: 'JSON file with tests to run' - }) - .option('version', { - flag: true, - help: 'print version and exit', - callback: function() { - return "version 1.2.4"; - } - }) - .parse(); - -if (opts.debug) - // do stuff -``` - -You don't have to specify anything if you don't want to: - -```javascript -var opts = require("nomnom").parse(); - -var url = opts[0]; // get the first positional arg -var file = opts.file // see if --file was specified -var verbose = opts.v // see if -v was specified -var extras = opts._ // get an array of the unmatched, positional args -``` - -# Install -for [node.js](http://nodejs.org/) and [npm](http://github.com/isaacs/npm): - - npm install nomnom - -# More Details -Nomnom supports args like `-d`, `--debug`, `--no-debug`, `--file=test.txt`, `--file test.txt`, `-f test.txt`, `-xvf`, and positionals. Positionals are arguments that don't fit the `-a` or `--atomic` format and aren't attached to an option. - -Values are JSON parsed, so `--debug=true --count=3 --file=log.txt` would give you: - -``` -{ - "debug": true, - "count": 3, - "file": "log.txt" -} -``` - -# Commands -Nomnom supports command-based interfaces (e.g. with git: `git add -p` and `git rebase -i` where `add` and `rebase` are the commands): - -```javascript -var parser = require("nomnom"); - -parser.command('browser') - .callback(function(opts) { - runBrowser(opts.url); - }) - .help("run browser tests"); - -parser.command('sanity') - .option('outfile', { - abbr: 'o', - help: "file to write results to" - }) - .option('config', { - abbr: 'c', - default: 'config.json', - help: "json manifest of tests to run" - }) - .callback(function(opts) { - runSanity(opts.filename); - }) - .help("run the sanity tests") - -parser.parse(); -``` - -Each command generates its own usage message when `-h` or `--help` is specified with the command. - -# Usage -Nomnom prints out a usage message if `--help` or `-h` is an argument. Usage for these options in `test.js`: - -```javascript -var opts = require("nomnom") - .script("runtests") - .options({ - path: { - position: 0, - help: "Test file to run", - list: true - }, - config: { - abbr: 'c', - metavar: 'FILE', - help: "Config file with tests to run" - }, - debug: { - abbr: 'd', - flag: true, - help: "Print debugging info" - } - }).parse(); -``` - -...would look like this: - - usage: runtests ... [options] - - path Test file to run - - options: - -c FILE, --config FILE Config file with tests to run - -d, --debug Print debugging info - -# Options -You can either add a specification for an option with `nomnom.option('name', spec)` or pass the specifications to `nomnom.options()` as a hash keyed on option name. Each option specification can have the following fields: - -#### abbr and full -`abbr` is the single character string to match to this option, `full` is the full-length string (defaults to the name of the option). - -This option matches `-d` and `--debug` on the command line: - -```javascript -nomnom.option('debug', { - abbr: 'd' -}) -``` - -This option matches `-n 3`, `--num-lines 12` on the command line: - -```javascript -nomnom.option('numLines', { - abbr: 'n', - full: 'num-lines' -}) -``` - -#### flag - -If this is set to true, the option acts as a flag and doesn't swallow the next value on the command line. Default is `false`, so normally if you had a command line `--config test.js`, `config` would get a value of `test.js` in the options hash. Whereas if you specify: - -```javascript -nomnom.option('config', { - flag: true -}) -``` - -`config` would get a value of `true` in the options hash, and `test.js` would be a free positional arg. - -#### metavar - -`metavar` is used in the usage printout e.g. `"PATH"` in `"-f PATH, --file PATH"`. - -#### string - -A shorthand for `abbr`, `full`, and `metavar`. For example, to attach an option to `-c` and `--config` use a `string: "-c FILE, --config=FILE"` - -#### help - -A string description of the option for the usage printout. - -#### default - -The value to give the option if it's not specified in the arguments. - -#### type - -If you don't want the option JSON-parsed, specify type `"string"`. - -#### callback - -A callback that will be executed as soon as the option is encountered. If the callback returns a string it will print the string and exit: - -```javascript -nomnom.option('count', { - callback: function(count) { - if (count != parseInt(count)) { - return "count must be an integer"; - } - } -}) -``` - -#### position - -The position of the option if it's a positional argument. If the option should be matched to the first positional arg use position `0`, etc. - -#### list - -Specifies that the option is a list. Appending can be achieved by specifying the arg more than once on the command line: - - node test.js --file=test1.js --file=test2.js - -If the option has a `position` and `list` is `true`, all positional args including and after `position` will be appended to the array. - -#### required - -If this is set to `true` and the option isn't in the args, a message will be printed and the program will exit. - -#### choices - -A list of the possible values for the option (e.g. `['run', 'test', 'open']`). If the parsed value isn't in the list a message will be printed and the program will exit. - -#### transform - -A function that takes the value of the option as entered and returns a new value that will be seen as the value of the option. - -```javascript -nomnom.option('date', { - abbr: 'd', - transform: function(timestamp) { - return new Date(timestamp); - } -}) -``` - -#### hidden - -Option won't be printed in the usage - - -# Parser interface -`require("nomnom")` will give you the option parser. You can also make an instance of a parser with `require("nomnom")()`. You can chain any of these functions off of a parser: - -#### option - -Add an option specification with the given name: - -```javascript -nomnom.option('debug', { - abbr: 'd', - flag: true, - help: "Print debugging info" -}) -``` - -#### options - -Add options as a hash keyed by option name, good for a cli with tons of options like [this example](http://github.com/harthur/replace/blob/master/bin/replace.js): - -```javascript -nomnom.options({ - debug: { - abbr: 'd', - flag: true, - help: "Print debugging info" - }, - fruit: { - help: "Fruit to buy" - } -}) -``` - -#### usage - -The string that will override the default generated usage message. - -#### help - -A string that is appended to the usage. - -#### script - -Nomnom can't detect the alias used to run your script. You can use `script` to provide the correct name for the usage printout instead of e.g. `node test.js`. - -#### printer - -Overrides the usage printing function. - -#### command - -Takes a command name and gives you a command object on which you can chain command options. - -#### nocommand - -Gives a command object that will be used when no command is called. - -#### nocolors - -Disables coloring of the usage message. - -#### parse - -Parses node's `process.argv` and returns the parsed options hash. You can also provide argv: - -```javascript -var opts = nomnom.parse(["-xvf", "--atomic=true"]) -``` - -#### nom - -The same as `parse()`. - -# Command interface -A command is specified with `nomnom.command('name')`. All these functions can be chained on a command: - -#### option - -Add an option specifically for this command. - -#### options - -Add options for this command as a hash of options keyed by name. - -#### callback - -A callback that will be called with the parsed options when the command is used. - -#### help - -A help string describing the function of this command. - -#### usage - -Override the default generated usage string for this command. diff --git a/node_modules/nomnom/node_modules/ansi-styles/ansi-styles.js b/node_modules/nomnom/node_modules/ansi-styles/ansi-styles.js deleted file mode 100644 index 3da548c40..000000000 --- a/node_modules/nomnom/node_modules/ansi-styles/ansi-styles.js +++ /dev/null @@ -1,38 +0,0 @@ -'use strict'; -var styles = module.exports; - -var codes = { - reset: [0, 0], - - bold: [1, 22], - italic: [3, 23], - underline: [4, 24], - inverse: [7, 27], - strikethrough: [9, 29], - - black: [30, 39], - red: [31, 39], - green: [32, 39], - yellow: [33, 39], - blue: [34, 39], - magenta: [35, 39], - cyan: [36, 39], - white: [37, 39], - gray: [90, 39], - - bgBlack: [40, 49], - bgRed: [41, 49], - bgGreen: [42, 49], - bgYellow: [43, 49], - bgBlue: [44, 49], - bgMagenta: [45, 49], - bgCyan: [46, 49], - bgWhite: [47, 49] -}; - -Object.keys(codes).forEach(function (key) { - var val = codes[key]; - var style = styles[key] = {}; - style.open = '\x1b[' + val[0] + 'm'; - style.close = '\x1b[' + val[1] + 'm'; -}); diff --git a/node_modules/nomnom/node_modules/ansi-styles/package.json b/node_modules/nomnom/node_modules/ansi-styles/package.json deleted file mode 100644 index f0af5291d..000000000 --- a/node_modules/nomnom/node_modules/ansi-styles/package.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "name": "ansi-styles", - "version": "1.0.0", - "description": "ANSI escape codes for colorizing strings in the terminal", - "keywords": [ - "ansi", - "styles", - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "tty", - "escape", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "homepage": "https://github.com/sindresorhus/ansi-styles", - "bugs": "https://github.com/sindresorhus/ansi-styles/issues", - "license": "MIT", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "http://sindresorhus.com" - }, - "files": [ - "ansi-styles.js" - ], - "main": "ansi-styles", - "repository": { - "type": "git", - "url": "git://github.com/sindresorhus/ansi-styles.git" - }, - "scripts": { - "test": "mocha" - }, - "devDependencies": { - "mocha": "~1.12.0" - }, - "engines": { - "node": ">=0.8.0" - } -} diff --git a/node_modules/nomnom/node_modules/ansi-styles/readme.md b/node_modules/nomnom/node_modules/ansi-styles/readme.md deleted file mode 100644 index 4ac8cbd0a..000000000 --- a/node_modules/nomnom/node_modules/ansi-styles/readme.md +++ /dev/null @@ -1,65 +0,0 @@ -# ansi-styles [![Build Status](https://secure.travis-ci.org/sindresorhus/ansi-styles.png?branch=master)](http://travis-ci.org/sindresorhus/ansi-styles) - -> [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) for colorizing strings in the terminal. - -You probably want the higher-level [chalk](https://github.com/sindresorhus/chalk) module for styling your strings. - -![screenshot](screenshot.png) - - -## Install - -Install with [npm](https://npmjs.org/package/ansi-styles): `npm install --save ansi-styles` - - -## Example - -```js -var ansi = require('ansi-styles'); - -console.log(ansi.green.open + 'Hello world!' + ansi.green.close); -``` - -## API - -Each style has an `open` and `close` property. - - -## Styles - -### General - -- reset -- bold -- italic -- underline -- inverse -- strikethrough - -### Text colors - -- black -- red -- green -- yellow -- blue -- magenta -- cyan -- white -- gray - -### Background colors - -- bgBlack -- bgRed -- bgGreen -- bgYellow -- bgBlue -- bgMagenta -- bgCyan -- bgWhite - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/nomnom/node_modules/chalk/index.js b/node_modules/nomnom/node_modules/chalk/index.js deleted file mode 100644 index a21f70223..000000000 --- a/node_modules/nomnom/node_modules/chalk/index.js +++ /dev/null @@ -1,63 +0,0 @@ -'use strict'; -var ansi = require('ansi-styles'); -var stripAnsi = require('strip-ansi'); -var hasColor = require('has-color'); -var defineProps = Object.defineProperties; -var chalk = module.exports; - -var styles = (function () { - var ret = {}; - - ansi.grey = ansi.gray; - - Object.keys(ansi).forEach(function (key) { - ret[key] = { - get: function () { - this._styles.push(key); - return this; - } - }; - }); - - return ret; -})(); - -function init() { - var ret = {}; - - Object.keys(styles).forEach(function (name) { - ret[name] = { - get: function () { - var obj = defineProps(function self() { - var str = [].slice.call(arguments).join(' '); - - if (!chalk.enabled) { - return str; - } - - return self._styles.reduce(function (str, name) { - var code = ansi[name]; - return str ? code.open + str + code.close : ''; - }, str); - }, styles); - - obj._styles = []; - - return obj[name]; - } - } - }); - - return ret; -} - -defineProps(chalk, init()); - -chalk.styles = ansi; -chalk.stripColor = stripAnsi; -chalk.supportsColor = hasColor; - -// detect mode if not set manually -if (chalk.enabled === undefined) { - chalk.enabled = chalk.supportsColor; -} diff --git a/node_modules/nomnom/node_modules/chalk/node_modules/.bin/strip-ansi b/node_modules/nomnom/node_modules/chalk/node_modules/.bin/strip-ansi deleted file mode 120000 index f7646606c..000000000 --- a/node_modules/nomnom/node_modules/chalk/node_modules/.bin/strip-ansi +++ /dev/null @@ -1 +0,0 @@ -../../../strip-ansi/cli.js \ No newline at end of file diff --git a/node_modules/nomnom/node_modules/chalk/package.json b/node_modules/nomnom/node_modules/chalk/package.json deleted file mode 100644 index 448f75aac..000000000 --- a/node_modules/nomnom/node_modules/chalk/package.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "name": "chalk", - "version": "0.4.0", - "description": "Terminal string styling done right. Created because the `colors` module does some really horrible things.", - "license": "MIT", - "repository": "sindresorhus/chalk", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "http://sindresorhus.com" - }, - "engines": { - "node": ">=0.8.0" - }, - "scripts": { - "test": "mocha" - }, - "files": [ - "index.js" - ], - "keywords": [ - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "ansi", - "styles", - "tty", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "has-color": "~0.1.0", - "ansi-styles": "~1.0.0", - "strip-ansi": "~0.1.0" - }, - "devDependencies": { - "mocha": "~1.x" - } -} diff --git a/node_modules/nomnom/node_modules/chalk/readme.md b/node_modules/nomnom/node_modules/chalk/readme.md deleted file mode 100644 index 46813acfc..000000000 --- a/node_modules/nomnom/node_modules/chalk/readme.md +++ /dev/null @@ -1,158 +0,0 @@ -# chalk - -> Terminal string styling done right - -[![Build Status](https://secure.travis-ci.org/sindresorhus/chalk.png?branch=master)](http://travis-ci.org/sindresorhus/chalk) - -[colors.js](https://github.com/Marak/colors.js) is currently the most popular string styling module, but it has serious deficiencies like extending String.prototype which causes all kinds of [problems](https://github.com/yeoman/yo/issues/68). Although there are other ones, they either do too much or not enough. - -**Chalk is a clean and focused alternative.** - -![screenshot](screenshot.png) - - -## Why - -- **Doesn't extend String.prototype** -- Expressive API -- Clean and focused -- Auto-detects color support -- Actively maintained -- [Used by 150+ modules](https://npmjs.org/browse/depended/chalk) - - -## Install - -Install with [npm](https://npmjs.org/package/chalk): `npm install --save chalk` - - -## Example - -Chalk comes with an easy to use composable API where you just chain and nest the styles you want. - -```js -var chalk = require('chalk'); - -// style a string -console.log( chalk.blue('Hello world!') ); - -// combine styled and normal strings -console.log( chalk.blue('Hello'), 'World' + chalk.red('!') ); - -// compose multiple styles using the chainable API -console.log( chalk.blue.bgRed.bold('Hello world!') ); - -// nest styles -console.log( chalk.red('Hello', chalk.underline.bgBlue('world') + '!') ); - -// pass in multiple arguments -console.log( chalk.blue('Hello', 'World!', 'Foo', 'bar', 'biz', 'baz') ); -``` - -You can easily define your own themes. - -```js -var chalk = require('chalk'); -var error = chalk.bold.red; -console.log(error('Error!')); -``` - - -## API - -### chalk.`