Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRebecca Turner <me@re-becca.org>2016-01-28 03:41:24 +0300
committerRebecca Turner <me@re-becca.org>2016-01-29 01:58:47 +0300
commitc680fa9f8135759eb5512f4b86e47fa265733f79 (patch)
tree6044678c603e449d08d9477a0575ab9cb6721536 /node_modules/npmlog
parentef1971e6270c2bc72e6392b51a8b84f52708f7e7 (diff)
npmlog@2.0.2
New `are-we-there-yet` (perf patches from @STRML) New `gauge` with timer churn perf patch Credit: @iarna
Diffstat (limited to 'node_modules/npmlog')
-rw-r--r--node_modules/npmlog/node_modules/are-we-there-yet/.npmignore2
-rw-r--r--node_modules/npmlog/node_modules/are-we-there-yet/index.js38
-rw-r--r--node_modules/npmlog/node_modules/are-we-there-yet/node_modules/delegates/History.md6
-rw-r--r--node_modules/npmlog/node_modules/are-we-there-yet/node_modules/delegates/License20
-rw-r--r--node_modules/npmlog/node_modules/are-we-there-yet/node_modules/delegates/package.json82
-rw-r--r--node_modules/npmlog/node_modules/are-we-there-yet/package.json33
-rw-r--r--node_modules/npmlog/node_modules/gauge/node_modules/lodash.pad/README.md4
-rw-r--r--node_modules/npmlog/node_modules/gauge/node_modules/lodash.pad/index.js23
-rw-r--r--node_modules/npmlog/node_modules/gauge/node_modules/lodash.pad/node_modules/lodash.repeat/README.md4
-rw-r--r--node_modules/npmlog/node_modules/gauge/node_modules/lodash.pad/node_modules/lodash.repeat/index.js10
-rw-r--r--node_modules/npmlog/node_modules/gauge/node_modules/lodash.pad/node_modules/lodash.repeat/package.json12
-rw-r--r--node_modules/npmlog/node_modules/gauge/node_modules/lodash.pad/package.json12
-rw-r--r--node_modules/npmlog/node_modules/gauge/node_modules/lodash.padleft/node_modules/lodash._createpadding/node_modules/lodash.repeat/README.md4
-rw-r--r--node_modules/npmlog/node_modules/gauge/node_modules/lodash.padleft/node_modules/lodash._createpadding/node_modules/lodash.repeat/index.js10
-rw-r--r--node_modules/npmlog/node_modules/gauge/node_modules/lodash.padleft/node_modules/lodash._createpadding/node_modules/lodash.repeat/package.json8
-rw-r--r--node_modules/npmlog/node_modules/gauge/node_modules/lodash.padright/node_modules/lodash._createpadding/node_modules/lodash.repeat/README.md4
-rw-r--r--node_modules/npmlog/node_modules/gauge/node_modules/lodash.padright/node_modules/lodash._createpadding/node_modules/lodash.repeat/index.js10
-rw-r--r--node_modules/npmlog/node_modules/gauge/node_modules/lodash.padright/node_modules/lodash._createpadding/node_modules/lodash.repeat/package.json8
-rw-r--r--node_modules/npmlog/node_modules/gauge/package.json28
-rw-r--r--node_modules/npmlog/node_modules/gauge/progress-bar.js9
-rw-r--r--node_modules/npmlog/node_modules/gauge/test/progress-bar.js2
-rw-r--r--node_modules/npmlog/package.json99
22 files changed, 270 insertions, 158 deletions
diff --git a/node_modules/npmlog/node_modules/are-we-there-yet/.npmignore b/node_modules/npmlog/node_modules/are-we-there-yet/.npmignore
index 926ddf616..bc818974f 100644
--- a/node_modules/npmlog/node_modules/are-we-there-yet/.npmignore
+++ b/node_modules/npmlog/node_modules/are-we-there-yet/.npmignore
@@ -1,3 +1,5 @@
*~
.#*
node_modules
+coverage
+.nyc_output
diff --git a/node_modules/npmlog/node_modules/are-we-there-yet/index.js b/node_modules/npmlog/node_modules/are-we-there-yet/index.js
index 22f47ac88..9e7711935 100644
--- a/node_modules/npmlog/node_modules/are-we-there-yet/index.js
+++ b/node_modules/npmlog/node_modules/are-we-there-yet/index.js
@@ -1,21 +1,21 @@
"use strict"
-var stream = require("readable-stream");
+var stream = require("readable-stream")
var EventEmitter = require("events").EventEmitter
var util = require("util")
var delegate = require("delegates")
+function noteChange (trackerGroup) {
+ return function (name) {
+ trackerGroup.emit('change', name || trackerGroup.name);
+ }
+}
+
var TrackerGroup = exports.TrackerGroup = function (name) {
EventEmitter.call(this)
this.name = name
this.trackGroup = []
- var self = this
this.totalWeight = 0
- var noteChange = this.noteChange = function (name) {
- self.emit("change", name || this.name)
- }.bind(this)
- this.trackGroup.forEach(function(unit) {
- unit.on("change", noteChange)
- })
+ this.noteChange = noteChange(this)
}
util.inherits(TrackerGroup, EventEmitter)
@@ -23,9 +23,10 @@ TrackerGroup.prototype.completed = function () {
if (this.trackGroup.length==0) return 0
var valPerWeight = 1 / this.totalWeight
var completed = 0
- this.trackGroup.forEach(function(T) {
- completed += valPerWeight * T.weight * T.completed()
- })
+ for (var i = 0, len = this.trackGroup.length; i < len; i++){
+ var group = this.trackGroup[i];
+ completed += valPerWeight * group.weight * group.completed()
+ }
return completed
}
@@ -33,6 +34,7 @@ TrackerGroup.prototype.addUnit = function (unit, weight, noChange) {
unit.weight = weight || 1
this.totalWeight += unit.weight
this.trackGroup.push(unit)
+ // Bubble events back up
unit.on("change", this.noteChange)
if (! noChange) this.emit("change", this.name)
return unit
@@ -51,12 +53,12 @@ TrackerGroup.prototype.newStream = function (name, todo, weight) {
}
TrackerGroup.prototype.finish = function () {
- if (! this.trackGroup.length) { this.addUnit(new Tracker(), 1, true) }
- var self = this
- this.trackGroup.forEach(function(T) {
- T.removeListener("change", self.noteChange)
- T.finish()
- })
+ if (! this.trackGroup.length) this.addUnit(new Tracker(), 1, true)
+ for (var i = 0, len = this.trackGroup.length; i < len; i++) {
+ var group = this.trackGroup[i]
+ group.removeListener("change", this.noteChange)
+ group.finish()
+ }
this.emit("change", this.name)
}
@@ -85,7 +87,7 @@ var Tracker = exports.Tracker = function (name,todo) {
util.inherits(Tracker, EventEmitter)
Tracker.prototype.completed = function () {
- return this.workTodo==0 ? 0 : this.workDone / this.workTodo
+ return this.workTodo === 0 ? 0 : this.workDone / this.workTodo
}
Tracker.prototype.addWork = function (work) {
diff --git a/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/delegates/History.md b/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/delegates/History.md
index aee31a4c3..25959eab6 100644
--- a/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/delegates/History.md
+++ b/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/delegates/History.md
@@ -1,4 +1,10 @@
+1.0.0 / 2015-12-14
+==================
+
+ * Merge pull request #12 from kasicka/master
+ * Add license text
+
0.1.0 / 2014-10-17
==================
diff --git a/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/delegates/License b/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/delegates/License
new file mode 100644
index 000000000..60de60add
--- /dev/null
+++ b/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/delegates/License
@@ -0,0 +1,20 @@
+Copyright (c) 2015 TJ Holowaychuk <tj@vision-media.ca>
+
+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/npmlog/node_modules/are-we-there-yet/node_modules/delegates/package.json b/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/delegates/package.json
index ea3c1da0d..a32bbf52b 100644
--- a/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/delegates/package.json
+++ b/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/delegates/package.json
@@ -1,33 +1,59 @@
{
- "name": "delegates",
- "version": "0.1.0",
- "repository": {
- "type": "git",
- "url": "git://github.com/visionmedia/node-delegates.git"
+ "_args": [
+ [
+ "delegates@^1.0.0",
+ "/Users/rebecca/code/npm/node_modules/npmlog/node_modules/are-we-there-yet"
+ ]
+ ],
+ "_from": "delegates@>=1.0.0 <2.0.0",
+ "_id": "delegates@1.0.0",
+ "_inCache": true,
+ "_installable": true,
+ "_location": "/npmlog/are-we-there-yet/delegates",
+ "_nodeVersion": "4.2.1",
+ "_npmUser": {
+ "email": "tj@vision-media.ca",
+ "name": "tjholowaychuk"
},
- "description": "delegate methods and accessors to another property",
- "keywords": [
- "delegate",
- "delegation"
+ "_npmVersion": "3.3.12",
+ "_phantomChildren": {},
+ "_requested": {
+ "name": "delegates",
+ "raw": "delegates@^1.0.0",
+ "rawSpec": "^1.0.0",
+ "scope": null,
+ "spec": ">=1.0.0 <2.0.0",
+ "type": "range"
+ },
+ "_requiredBy": [
+ "/npmlog/are-we-there-yet"
],
+ "_resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",
+ "_shasum": "84c6e159b81904fdca59a0ef44cd870d31250f9a",
+ "_shrinkwrap": null,
+ "_spec": "delegates@^1.0.0",
+ "_where": "/Users/rebecca/code/npm/node_modules/npmlog/node_modules/are-we-there-yet",
+ "bugs": {
+ "url": "https://github.com/visionmedia/node-delegates/issues"
+ },
"dependencies": {},
+ "description": "delegate methods and accessors to another property",
"devDependencies": {
"mocha": "*",
"should": "*"
},
- "license": "MIT",
- "bugs": {
- "url": "https://github.com/visionmedia/node-delegates/issues"
- },
- "homepage": "https://github.com/visionmedia/node-delegates",
- "_id": "delegates@0.1.0",
- "_shasum": "b4b57be11a1653517a04b27f0949bdc327dfe390",
- "_from": "delegates@>=0.1.0 <0.2.0",
- "_npmVersion": "1.4.9",
- "_npmUser": {
- "name": "dominicbarnes",
- "email": "dominic@dbarnes.info"
+ "directories": {},
+ "dist": {
+ "shasum": "84c6e159b81904fdca59a0ef44cd870d31250f9a",
+ "tarball": "http://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz"
},
+ "gitHead": "c4dc07ef1ed51c2b2a63f3585e5ef949ee577a49",
+ "homepage": "https://github.com/visionmedia/node-delegates#readme",
+ "keywords": [
+ "delegate",
+ "delegation"
+ ],
+ "license": "MIT",
"maintainers": [
{
"name": "tjholowaychuk",
@@ -38,11 +64,13 @@
"email": "dominic@dbarnes.info"
}
],
- "dist": {
- "shasum": "b4b57be11a1653517a04b27f0949bdc327dfe390",
- "tarball": "http://registry.npmjs.org/delegates/-/delegates-0.1.0.tgz"
+ "name": "delegates",
+ "optionalDependencies": {},
+ "readme": "ERROR: No README data found!",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/visionmedia/node-delegates.git"
},
- "directories": {},
- "_resolved": "https://registry.npmjs.org/delegates/-/delegates-0.1.0.tgz",
- "readme": "ERROR: No README data found!"
+ "scripts": {},
+ "version": "1.0.0"
}
diff --git a/node_modules/npmlog/node_modules/are-we-there-yet/package.json b/node_modules/npmlog/node_modules/are-we-there-yet/package.json
index b2d2bea01..fa2d7c62e 100644
--- a/node_modules/npmlog/node_modules/are-we-there-yet/package.json
+++ b/node_modules/npmlog/node_modules/are-we-there-yet/package.json
@@ -1,37 +1,36 @@
{
"_args": [
[
- "are-we-there-yet@~1.0.0",
+ "are-we-there-yet@~1.0.6",
"/Users/rebecca/code/npm/node_modules/npmlog"
]
],
- "_from": "are-we-there-yet@>=1.0.0 <1.1.0",
- "_id": "are-we-there-yet@1.0.5",
+ "_from": "are-we-there-yet@>=1.0.6 <1.1.0",
+ "_id": "are-we-there-yet@1.0.6",
"_inCache": true,
"_installable": true,
"_location": "/npmlog/are-we-there-yet",
- "_nodeVersion": "4.2.2",
+ "_nodeVersion": "5.4.0",
"_npmUser": {
"email": "me@re-becca.org",
"name": "iarna"
},
- "_npmVersion": "3.5.2",
+ "_npmVersion": "3.6.0",
"_phantomChildren": {},
"_requested": {
"name": "are-we-there-yet",
- "raw": "are-we-there-yet@~1.0.0",
- "rawSpec": "~1.0.0",
+ "raw": "are-we-there-yet@~1.0.6",
+ "rawSpec": "~1.0.6",
"scope": null,
- "spec": ">=1.0.0 <1.1.0",
+ "spec": ">=1.0.6 <1.1.0",
"type": "range"
},
"_requiredBy": [
"/npmlog"
],
- "_resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.0.5.tgz",
- "_shasum": "239f26706da902a2bffb72c33de66fdfd3798ac5",
+ "_shasum": "a2d28c93102aa6cc96245a26cb954de06ec53f0c",
"_shrinkwrap": null,
- "_spec": "are-we-there-yet@~1.0.0",
+ "_spec": "are-we-there-yet@~1.0.6",
"_where": "/Users/rebecca/code/npm/node_modules/npmlog",
"author": {
"name": "Rebecca Turner",
@@ -41,19 +40,19 @@
"url": "https://github.com/iarna/are-we-there-yet/issues"
},
"dependencies": {
- "delegates": "^0.1.0",
+ "delegates": "^1.0.0",
"readable-stream": "^2.0.0 || ^1.1.13"
},
"description": "Keep track of the overall completion of many dispirate processes",
"devDependencies": {
- "tap": "^0.4.13"
+ "tap": "^5.2.0"
},
"directories": {},
"dist": {
- "shasum": "239f26706da902a2bffb72c33de66fdfd3798ac5",
- "tarball": "http://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.0.5.tgz"
+ "shasum": "a2d28c93102aa6cc96245a26cb954de06ec53f0c",
+ "tarball": "http://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.0.6.tgz"
},
- "gitHead": "abaff79ae17e9397eae19d29d2d75778d18aab3a",
+ "gitHead": "5f19c8b6f9c5afb8b0b17308cb9d66f7027ae526",
"homepage": "https://github.com/iarna/are-we-there-yet",
"license": "ISC",
"main": "index.js",
@@ -73,5 +72,5 @@
"scripts": {
"test": "tap test/*.js"
},
- "version": "1.0.5"
+ "version": "1.0.6"
}
diff --git a/node_modules/npmlog/node_modules/gauge/node_modules/lodash.pad/README.md b/node_modules/npmlog/node_modules/gauge/node_modules/lodash.pad/README.md
index 89c8deeaf..3e4c3c199 100644
--- a/node_modules/npmlog/node_modules/gauge/node_modules/lodash.pad/README.md
+++ b/node_modules/npmlog/node_modules/gauge/node_modules/lodash.pad/README.md
@@ -1,4 +1,4 @@
-# lodash.pad v3.2.0
+# lodash.pad v3.2.1
The [lodash](https://lodash.com/) method `_.pad` exported as a [Node.js](https://nodejs.org/) module.
@@ -15,4 +15,4 @@ In Node.js:
var pad = require('lodash.pad');
```
-See the [documentation](https://lodash.com/docs#pad) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.pad) for more details.
+See the [documentation](https://lodash.com/docs#pad) or [package source](https://github.com/lodash/lodash/blob/3.2.1-npm-packages/lodash.pad) for more details.
diff --git a/node_modules/npmlog/node_modules/gauge/node_modules/lodash.pad/index.js b/node_modules/npmlog/node_modules/gauge/node_modules/lodash.pad/index.js
index 4a32b912c..9ad6fab39 100644
--- a/node_modules/npmlog/node_modules/gauge/node_modules/lodash.pad/index.js
+++ b/node_modules/npmlog/node_modules/gauge/node_modules/lodash.pad/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.2.0 (Custom Build) <https://lodash.com/>
+ * lodash 3.2.1 (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="npm" -o ./`
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
@@ -32,13 +32,15 @@ var reIsOctal = /^0o[0-7]+$/i;
/** Used to compose unicode character classes. */
var rsAstralRange = '\\ud800-\\udfff',
- rsComboRange = '\\u0300-\\u036f\\ufe20-\\ufe23',
+ rsComboMarksRange = '\\u0300-\\u036f\\ufe20-\\ufe23',
+ rsComboSymbolsRange = '\\u20d0-\\u20f0',
rsVarRange = '\\ufe0e\\ufe0f';
/** Used to compose unicode capture groups. */
var rsAstral = '[' + rsAstralRange + ']',
- rsCombo = '[' + rsComboRange + ']',
- rsModifier = '(?:\\ud83c[\\udffb-\\udfff])',
+ rsCombo = '[' + rsComboMarksRange + rsComboSymbolsRange + ']',
+ rsFitz = '\\ud83c[\\udffb-\\udfff]',
+ rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
rsNonAstral = '[^' + rsAstralRange + ']',
rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
@@ -52,10 +54,10 @@ var reOptMod = rsModifier + '?',
rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
-var reComplexSymbol = RegExp(rsSymbol + rsSeq, 'g');
+var reComplexSymbol = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
-var reHasComplexSymbol = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');
+var reHasComplexSymbol = RegExp('[' + rsZWJ + rsAstralRange + rsComboMarksRange + rsComboSymbolsRange + rsVarRange + ']');
/** Built-in method references without a dependency on `global`. */
var freeParseInt = parseInt;
@@ -63,6 +65,7 @@ var freeParseInt = parseInt;
/**
* Gets the number of symbols in `string`.
*
+ * @private
* @param {string} string The string to inspect.
* @returns {number} Returns the string size.
*/
@@ -98,15 +101,15 @@ var objectProto = global.Object.prototype;
var objectToString = objectProto.toString;
/** Built-in value references. */
-var _Symbol = global.Symbol;
+var Symbol = global.Symbol;
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeCeil = Math.ceil,
nativeFloor = Math.floor;
/** Used to convert symbols to primitives and strings. */
-var symbolProto = _Symbol ? _Symbol.prototype : undefined,
- symbolToString = _Symbol ? symbolProto.toString : undefined;
+var symbolProto = Symbol ? Symbol.prototype : undefined,
+ symbolToString = Symbol ? symbolProto.toString : undefined;
/**
* Creates the padding for `string` based on `length`. The `chars` string
@@ -339,7 +342,7 @@ function toString(value) {
return '';
}
if (isSymbol(value)) {
- return _Symbol ? symbolToString.call(value) : '';
+ return Symbol ? symbolToString.call(value) : '';
}
var result = (value + '');
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
diff --git a/node_modules/npmlog/node_modules/gauge/node_modules/lodash.pad/node_modules/lodash.repeat/README.md b/node_modules/npmlog/node_modules/gauge/node_modules/lodash.pad/node_modules/lodash.repeat/README.md
index a911d9909..134f8303b 100644
--- a/node_modules/npmlog/node_modules/gauge/node_modules/lodash.pad/node_modules/lodash.repeat/README.md
+++ b/node_modules/npmlog/node_modules/gauge/node_modules/lodash.pad/node_modules/lodash.repeat/README.md
@@ -1,4 +1,4 @@
-# lodash.repeat v3.1.0
+# lodash.repeat v3.1.1
The [lodash](https://lodash.com/) method `_.repeat` exported as a [Node.js](https://nodejs.org/) module.
@@ -15,4 +15,4 @@ In Node.js:
var repeat = require('lodash.repeat');
```
-See the [documentation](https://lodash.com/docs#repeat) or [package source](https://github.com/lodash/lodash/blob/3.1.0-npm-packages/lodash.repeat) for more details.
+See the [documentation](https://lodash.com/docs#repeat) or [package source](https://github.com/lodash/lodash/blob/3.1.1-npm-packages/lodash.repeat) for more details.
diff --git a/node_modules/npmlog/node_modules/gauge/node_modules/lodash.pad/node_modules/lodash.repeat/index.js b/node_modules/npmlog/node_modules/gauge/node_modules/lodash.pad/node_modules/lodash.repeat/index.js
index 85a5a90b3..1103d1f16 100644
--- a/node_modules/npmlog/node_modules/gauge/node_modules/lodash.pad/node_modules/lodash.repeat/index.js
+++ b/node_modules/npmlog/node_modules/gauge/node_modules/lodash.pad/node_modules/lodash.repeat/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.1.0 (Custom Build) <https://lodash.com/>
+ * lodash 3.1.1 (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="npm" -o ./`
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
@@ -43,14 +43,14 @@ var objectProto = global.Object.prototype;
var objectToString = objectProto.toString;
/** Built-in value references. */
-var _Symbol = global.Symbol;
+var Symbol = global.Symbol;
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeFloor = Math.floor;
/** Used to convert symbols to primitives and strings. */
-var symbolProto = _Symbol ? _Symbol.prototype : undefined,
- symbolToString = _Symbol ? symbolProto.toString : undefined;
+var symbolProto = Symbol ? Symbol.prototype : undefined,
+ symbolToString = Symbol ? symbolProto.toString : undefined;
/**
* Checks if `value` is classified as a `Function` object.
@@ -257,7 +257,7 @@ function toString(value) {
return '';
}
if (isSymbol(value)) {
- return _Symbol ? symbolToString.call(value) : '';
+ return Symbol ? symbolToString.call(value) : '';
}
var result = (value + '');
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
diff --git a/node_modules/npmlog/node_modules/gauge/node_modules/lodash.pad/node_modules/lodash.repeat/package.json b/node_modules/npmlog/node_modules/gauge/node_modules/lodash.pad/node_modules/lodash.repeat/package.json
index 7657b759a..f0ba58bfa 100644
--- a/node_modules/npmlog/node_modules/gauge/node_modules/lodash.pad/node_modules/lodash.repeat/package.json
+++ b/node_modules/npmlog/node_modules/gauge/node_modules/lodash.pad/node_modules/lodash.repeat/package.json
@@ -6,7 +6,7 @@
]
],
"_from": "lodash.repeat@>=3.0.0 <4.0.0",
- "_id": "lodash.repeat@3.1.0",
+ "_id": "lodash.repeat@3.1.1",
"_inCache": true,
"_installable": true,
"_location": "/npmlog/gauge/lodash.pad/lodash.repeat",
@@ -28,8 +28,8 @@
"_requiredBy": [
"/npmlog/gauge/lodash.pad"
],
- "_resolved": "https://registry.npmjs.org/lodash.repeat/-/lodash.repeat-3.1.0.tgz",
- "_shasum": "a7bfe799b07c9a75dc010b65c61c1cfed3e18a96",
+ "_resolved": "https://registry.npmjs.org/lodash.repeat/-/lodash.repeat-3.1.1.tgz",
+ "_shasum": "71c0768468951e57f72425485150bce37ad89357",
"_shrinkwrap": null,
"_spec": "lodash.repeat@^3.0.0",
"_where": "/Users/rebecca/code/npm/node_modules/npmlog/node_modules/gauge/node_modules/lodash.pad",
@@ -63,8 +63,8 @@
"devDependencies": {},
"directories": {},
"dist": {
- "shasum": "a7bfe799b07c9a75dc010b65c61c1cfed3e18a96",
- "tarball": "http://registry.npmjs.org/lodash.repeat/-/lodash.repeat-3.1.0.tgz"
+ "shasum": "71c0768468951e57f72425485150bce37ad89357",
+ "tarball": "http://registry.npmjs.org/lodash.repeat/-/lodash.repeat-3.1.1.tgz"
},
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
@@ -100,5 +100,5 @@
"scripts": {
"test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\""
},
- "version": "3.1.0"
+ "version": "3.1.1"
}
diff --git a/node_modules/npmlog/node_modules/gauge/node_modules/lodash.pad/package.json b/node_modules/npmlog/node_modules/gauge/node_modules/lodash.pad/package.json
index db5aefb17..c65f97e2e 100644
--- a/node_modules/npmlog/node_modules/gauge/node_modules/lodash.pad/package.json
+++ b/node_modules/npmlog/node_modules/gauge/node_modules/lodash.pad/package.json
@@ -6,7 +6,7 @@
]
],
"_from": "lodash.pad@>=3.0.0 <4.0.0",
- "_id": "lodash.pad@3.2.0",
+ "_id": "lodash.pad@3.2.1",
"_inCache": true,
"_installable": true,
"_location": "/npmlog/gauge/lodash.pad",
@@ -28,8 +28,8 @@
"_requiredBy": [
"/npmlog/gauge"
],
- "_resolved": "https://registry.npmjs.org/lodash.pad/-/lodash.pad-3.2.0.tgz",
- "_shasum": "d1d882526da12087ef8c6089173ec081717698a2",
+ "_resolved": "https://registry.npmjs.org/lodash.pad/-/lodash.pad-3.2.1.tgz",
+ "_shasum": "f71e5c1e2c6447c8e1c818dc3f74e5c02e716de3",
"_shrinkwrap": null,
"_spec": "lodash.pad@^3.0.0",
"_where": "/Users/rebecca/code/npm/node_modules/npmlog/node_modules/gauge",
@@ -65,8 +65,8 @@
"devDependencies": {},
"directories": {},
"dist": {
- "shasum": "d1d882526da12087ef8c6089173ec081717698a2",
- "tarball": "http://registry.npmjs.org/lodash.pad/-/lodash.pad-3.2.0.tgz"
+ "shasum": "f71e5c1e2c6447c8e1c818dc3f74e5c02e716de3",
+ "tarball": "http://registry.npmjs.org/lodash.pad/-/lodash.pad-3.2.1.tgz"
},
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
@@ -102,5 +102,5 @@
"scripts": {
"test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\""
},
- "version": "3.2.0"
+ "version": "3.2.1"
}
diff --git a/node_modules/npmlog/node_modules/gauge/node_modules/lodash.padleft/node_modules/lodash._createpadding/node_modules/lodash.repeat/README.md b/node_modules/npmlog/node_modules/gauge/node_modules/lodash.padleft/node_modules/lodash._createpadding/node_modules/lodash.repeat/README.md
index a911d9909..134f8303b 100644
--- a/node_modules/npmlog/node_modules/gauge/node_modules/lodash.padleft/node_modules/lodash._createpadding/node_modules/lodash.repeat/README.md
+++ b/node_modules/npmlog/node_modules/gauge/node_modules/lodash.padleft/node_modules/lodash._createpadding/node_modules/lodash.repeat/README.md
@@ -1,4 +1,4 @@
-# lodash.repeat v3.1.0
+# lodash.repeat v3.1.1
The [lodash](https://lodash.com/) method `_.repeat` exported as a [Node.js](https://nodejs.org/) module.
@@ -15,4 +15,4 @@ In Node.js:
var repeat = require('lodash.repeat');
```
-See the [documentation](https://lodash.com/docs#repeat) or [package source](https://github.com/lodash/lodash/blob/3.1.0-npm-packages/lodash.repeat) for more details.
+See the [documentation](https://lodash.com/docs#repeat) or [package source](https://github.com/lodash/lodash/blob/3.1.1-npm-packages/lodash.repeat) for more details.
diff --git a/node_modules/npmlog/node_modules/gauge/node_modules/lodash.padleft/node_modules/lodash._createpadding/node_modules/lodash.repeat/index.js b/node_modules/npmlog/node_modules/gauge/node_modules/lodash.padleft/node_modules/lodash._createpadding/node_modules/lodash.repeat/index.js
index 85a5a90b3..1103d1f16 100644
--- a/node_modules/npmlog/node_modules/gauge/node_modules/lodash.padleft/node_modules/lodash._createpadding/node_modules/lodash.repeat/index.js
+++ b/node_modules/npmlog/node_modules/gauge/node_modules/lodash.padleft/node_modules/lodash._createpadding/node_modules/lodash.repeat/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.1.0 (Custom Build) <https://lodash.com/>
+ * lodash 3.1.1 (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="npm" -o ./`
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
@@ -43,14 +43,14 @@ var objectProto = global.Object.prototype;
var objectToString = objectProto.toString;
/** Built-in value references. */
-var _Symbol = global.Symbol;
+var Symbol = global.Symbol;
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeFloor = Math.floor;
/** Used to convert symbols to primitives and strings. */
-var symbolProto = _Symbol ? _Symbol.prototype : undefined,
- symbolToString = _Symbol ? symbolProto.toString : undefined;
+var symbolProto = Symbol ? Symbol.prototype : undefined,
+ symbolToString = Symbol ? symbolProto.toString : undefined;
/**
* Checks if `value` is classified as a `Function` object.
@@ -257,7 +257,7 @@ function toString(value) {
return '';
}
if (isSymbol(value)) {
- return _Symbol ? symbolToString.call(value) : '';
+ return Symbol ? symbolToString.call(value) : '';
}
var result = (value + '');
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
diff --git a/node_modules/npmlog/node_modules/gauge/node_modules/lodash.padleft/node_modules/lodash._createpadding/node_modules/lodash.repeat/package.json b/node_modules/npmlog/node_modules/gauge/node_modules/lodash.padleft/node_modules/lodash._createpadding/node_modules/lodash.repeat/package.json
index b296bc209..682bca742 100644
--- a/node_modules/npmlog/node_modules/gauge/node_modules/lodash.padleft/node_modules/lodash._createpadding/node_modules/lodash.repeat/package.json
+++ b/node_modules/npmlog/node_modules/gauge/node_modules/lodash.padleft/node_modules/lodash._createpadding/node_modules/lodash.repeat/package.json
@@ -10,7 +10,7 @@
]
],
"_from": "lodash.repeat@>=3.0.0 <4.0.0",
- "_id": "lodash.repeat@3.1.0",
+ "_id": "lodash.repeat@3.1.1",
"_inCache": true,
"_installable": true,
"_location": "/npmlog/gauge/lodash.padleft/lodash._createpadding/lodash.repeat",
@@ -65,8 +65,8 @@
"devDependencies": {},
"directories": {},
"dist": {
- "shasum": "a7bfe799b07c9a75dc010b65c61c1cfed3e18a96",
- "tarball": "http://registry.npmjs.org/lodash.repeat/-/lodash.repeat-3.1.0.tgz"
+ "shasum": "71c0768468951e57f72425485150bce37ad89357",
+ "tarball": "http://registry.npmjs.org/lodash.repeat/-/lodash.repeat-3.1.1.tgz"
},
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
@@ -102,5 +102,5 @@
"scripts": {
"test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\""
},
- "version": "3.1.0"
+ "version": "3.1.1"
}
diff --git a/node_modules/npmlog/node_modules/gauge/node_modules/lodash.padright/node_modules/lodash._createpadding/node_modules/lodash.repeat/README.md b/node_modules/npmlog/node_modules/gauge/node_modules/lodash.padright/node_modules/lodash._createpadding/node_modules/lodash.repeat/README.md
index a911d9909..134f8303b 100644
--- a/node_modules/npmlog/node_modules/gauge/node_modules/lodash.padright/node_modules/lodash._createpadding/node_modules/lodash.repeat/README.md
+++ b/node_modules/npmlog/node_modules/gauge/node_modules/lodash.padright/node_modules/lodash._createpadding/node_modules/lodash.repeat/README.md
@@ -1,4 +1,4 @@
-# lodash.repeat v3.1.0
+# lodash.repeat v3.1.1
The [lodash](https://lodash.com/) method `_.repeat` exported as a [Node.js](https://nodejs.org/) module.
@@ -15,4 +15,4 @@ In Node.js:
var repeat = require('lodash.repeat');
```
-See the [documentation](https://lodash.com/docs#repeat) or [package source](https://github.com/lodash/lodash/blob/3.1.0-npm-packages/lodash.repeat) for more details.
+See the [documentation](https://lodash.com/docs#repeat) or [package source](https://github.com/lodash/lodash/blob/3.1.1-npm-packages/lodash.repeat) for more details.
diff --git a/node_modules/npmlog/node_modules/gauge/node_modules/lodash.padright/node_modules/lodash._createpadding/node_modules/lodash.repeat/index.js b/node_modules/npmlog/node_modules/gauge/node_modules/lodash.padright/node_modules/lodash._createpadding/node_modules/lodash.repeat/index.js
index 85a5a90b3..1103d1f16 100644
--- a/node_modules/npmlog/node_modules/gauge/node_modules/lodash.padright/node_modules/lodash._createpadding/node_modules/lodash.repeat/index.js
+++ b/node_modules/npmlog/node_modules/gauge/node_modules/lodash.padright/node_modules/lodash._createpadding/node_modules/lodash.repeat/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.1.0 (Custom Build) <https://lodash.com/>
+ * lodash 3.1.1 (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="npm" -o ./`
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
@@ -43,14 +43,14 @@ var objectProto = global.Object.prototype;
var objectToString = objectProto.toString;
/** Built-in value references. */
-var _Symbol = global.Symbol;
+var Symbol = global.Symbol;
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeFloor = Math.floor;
/** Used to convert symbols to primitives and strings. */
-var symbolProto = _Symbol ? _Symbol.prototype : undefined,
- symbolToString = _Symbol ? symbolProto.toString : undefined;
+var symbolProto = Symbol ? Symbol.prototype : undefined,
+ symbolToString = Symbol ? symbolProto.toString : undefined;
/**
* Checks if `value` is classified as a `Function` object.
@@ -257,7 +257,7 @@ function toString(value) {
return '';
}
if (isSymbol(value)) {
- return _Symbol ? symbolToString.call(value) : '';
+ return Symbol ? symbolToString.call(value) : '';
}
var result = (value + '');
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
diff --git a/node_modules/npmlog/node_modules/gauge/node_modules/lodash.padright/node_modules/lodash._createpadding/node_modules/lodash.repeat/package.json b/node_modules/npmlog/node_modules/gauge/node_modules/lodash.padright/node_modules/lodash._createpadding/node_modules/lodash.repeat/package.json
index e4fec38a1..9cc6496f6 100644
--- a/node_modules/npmlog/node_modules/gauge/node_modules/lodash.padright/node_modules/lodash._createpadding/node_modules/lodash.repeat/package.json
+++ b/node_modules/npmlog/node_modules/gauge/node_modules/lodash.padright/node_modules/lodash._createpadding/node_modules/lodash.repeat/package.json
@@ -10,7 +10,7 @@
]
],
"_from": "lodash.repeat@>=3.0.0 <4.0.0",
- "_id": "lodash.repeat@3.1.0",
+ "_id": "lodash.repeat@3.1.1",
"_inCache": true,
"_installable": true,
"_location": "/npmlog/gauge/lodash.padright/lodash._createpadding/lodash.repeat",
@@ -65,8 +65,8 @@
"devDependencies": {},
"directories": {},
"dist": {
- "shasum": "a7bfe799b07c9a75dc010b65c61c1cfed3e18a96",
- "tarball": "http://registry.npmjs.org/lodash.repeat/-/lodash.repeat-3.1.0.tgz"
+ "shasum": "71c0768468951e57f72425485150bce37ad89357",
+ "tarball": "http://registry.npmjs.org/lodash.repeat/-/lodash.repeat-3.1.1.tgz"
},
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
@@ -102,5 +102,5 @@
"scripts": {
"test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\""
},
- "version": "3.1.0"
+ "version": "3.1.1"
}
diff --git a/node_modules/npmlog/node_modules/gauge/package.json b/node_modules/npmlog/node_modules/gauge/package.json
index 565d8a4de..6f66ef146 100644
--- a/node_modules/npmlog/node_modules/gauge/package.json
+++ b/node_modules/npmlog/node_modules/gauge/package.json
@@ -1,36 +1,36 @@
{
"_args": [
[
- "gauge@~1.2.0",
+ "gauge@~1.2.5",
"/Users/rebecca/code/npm/node_modules/npmlog"
]
],
- "_from": "gauge@>=1.2.0 <1.3.0",
- "_id": "gauge@1.2.4",
+ "_from": "gauge@>=1.2.5 <1.3.0",
+ "_id": "gauge@1.2.5",
"_inCache": true,
"_installable": true,
"_location": "/npmlog/gauge",
- "_nodeVersion": "4.2.2",
+ "_nodeVersion": "5.4.0",
"_npmUser": {
"email": "me@re-becca.org",
"name": "iarna"
},
- "_npmVersion": "3.5.4",
+ "_npmVersion": "3.6.0",
"_phantomChildren": {},
"_requested": {
"name": "gauge",
- "raw": "gauge@~1.2.0",
- "rawSpec": "~1.2.0",
+ "raw": "gauge@~1.2.5",
+ "rawSpec": "~1.2.5",
"scope": null,
- "spec": ">=1.2.0 <1.3.0",
+ "spec": ">=1.2.5 <1.3.0",
"type": "range"
},
"_requiredBy": [
"/npmlog"
],
- "_shasum": "b1d519758b3c77c7b45021d0ca4841548818bc41",
+ "_shasum": "b80f107dd1f7d3c5a85f5aa74f9e0124caac9da7",
"_shrinkwrap": null,
- "_spec": "gauge@~1.2.0",
+ "_spec": "gauge@~1.2.5",
"_where": "/Users/rebecca/code/npm/node_modules/npmlog",
"author": {
"email": "me@re-becca.org",
@@ -52,10 +52,10 @@
},
"directories": {},
"dist": {
- "shasum": "b1d519758b3c77c7b45021d0ca4841548818bc41",
- "tarball": "http://registry.npmjs.org/gauge/-/gauge-1.2.4.tgz"
+ "shasum": "b80f107dd1f7d3c5a85f5aa74f9e0124caac9da7",
+ "tarball": "http://registry.npmjs.org/gauge/-/gauge-1.2.5.tgz"
},
- "gitHead": "a6af415c7e143fd8dd058c97f5f3ed3dbad872f3",
+ "gitHead": "bd0bb377d121e17d343bba156dd92fe6a8b21581",
"homepage": "https://github.com/iarna/gauge",
"keywords": [
"gauge",
@@ -80,5 +80,5 @@
"scripts": {
"test": "tap test/*.js"
},
- "version": "1.2.4"
+ "version": "1.2.5"
}
diff --git a/node_modules/npmlog/node_modules/gauge/progress-bar.js b/node_modules/npmlog/node_modules/gauge/progress-bar.js
index 16bdadc51..00b3a77e1 100644
--- a/node_modules/npmlog/node_modules/gauge/progress-bar.js
+++ b/node_modules/npmlog/node_modules/gauge/progress-bar.js
@@ -36,7 +36,7 @@ var ProgressBar = module.exports = function (options, cursor) {
{type: "completionbar"},
{type: "endgroup"}
]
- this.updatefreq = options.maxUpdateFrequency || 50
+ this.updatefreq = options.maxUpdateFrequency == null ? 50 : options.maxUpdateFrequency
this.lastName = ""
this.lastCompleted = 0
this.spun = 0
@@ -132,13 +132,12 @@ ProgressBar.prototype.show = function(name, completed) {
if (!isTTY()) return
if (this.disabled) return
if (! this.spun && ! completed) return
- if (this.tryAgain) {
- clearTimeout(this.tryAgain)
- this.tryAgain = null
- }
+ if (this.tryAgain) return
var self = this
+
if (this.showing && new Date() - this.last < this.updatefreq) {
this.tryAgain = setTimeout(function () {
+ self.tryAgain = null
if (self.disabled) return
if (! self.spun && ! completed) return
drawBar()
diff --git a/node_modules/npmlog/node_modules/gauge/test/progress-bar.js b/node_modules/npmlog/node_modules/gauge/test/progress-bar.js
index 39939269f..5d3e7e78f 100644
--- a/node_modules/npmlog/node_modules/gauge/test/progress-bar.js
+++ b/node_modules/npmlog/node_modules/gauge/test/progress-bar.js
@@ -4,7 +4,7 @@ var ProgressBar = require("../progress-bar.js")
var cursor = []
var C
-var bar = new ProgressBar({theme: ProgressBar.ascii}, C = {
+var bar = new ProgressBar({theme: ProgressBar.ascii, maxUpdateFrequency: 0}, C = {
show: function () {
cursor.push(["show"])
return C
diff --git a/node_modules/npmlog/package.json b/node_modules/npmlog/package.json
index 40c1bc43e..a4ddff989 100644
--- a/node_modules/npmlog/package.json
+++ b/node_modules/npmlog/package.json
@@ -1,37 +1,90 @@
{
+ "_args": [
+ [
+ "npmlog@~2.0.0",
+ "/Users/rebecca/code/npm"
+ ]
+ ],
+ "_from": "npmlog@>=2.0.0 <2.1.0",
+ "_id": "npmlog@2.0.2",
+ "_inCache": true,
+ "_installable": true,
+ "_location": "/npmlog",
+ "_nodeVersion": "5.4.0",
+ "_npmUser": {
+ "email": "me@re-becca.org",
+ "name": "iarna"
+ },
+ "_npmVersion": "3.6.0",
+ "_phantomChildren": {
+ "has-unicode": "2.0.0",
+ "readable-stream": "2.0.5"
+ },
+ "_requested": {
+ "name": "npmlog",
+ "raw": "npmlog@~2.0.0",
+ "rawSpec": "~2.0.0",
+ "scope": null,
+ "spec": ">=2.0.0 <2.1.0",
+ "type": "range"
+ },
+ "_requiredBy": [
+ "/",
+ "/npm-registry-client"
+ ],
+ "_shasum": "d0470238b9697b7c3c4d16bdea65a00b12a464ab",
+ "_shrinkwrap": null,
+ "_spec": "npmlog@~2.0.0",
+ "_where": "/Users/rebecca/code/npm",
"author": {
- "name": "Isaac Z. Schlueter",
"email": "i@izs.me",
+ "name": "Isaac Z. Schlueter",
"url": "http://blog.izs.me/"
},
- "name": "npmlog",
+ "bugs": {
+ "url": "https://github.com/npm/npmlog/issues"
+ },
+ "dependencies": {
+ "ansi": "~0.3.1",
+ "are-we-there-yet": "~1.0.6",
+ "gauge": "~1.2.5"
+ },
"description": "logger for npm",
- "version": "2.0.0",
+ "devDependencies": {
+ "tap": "~5.1.2"
+ },
+ "directories": {},
+ "dist": {
+ "shasum": "d0470238b9697b7c3c4d16bdea65a00b12a464ab",
+ "tarball": "http://registry.npmjs.org/npmlog/-/npmlog-2.0.2.tgz"
+ },
+ "gitHead": "79dc582bf1ce4d2010454d89738a0a4dbd113be9",
+ "homepage": "https://github.com/npm/npmlog#readme",
+ "license": "ISC",
+ "main": "log.js",
+ "maintainers": [
+ {
+ "name": "iarna",
+ "email": "me@re-becca.org"
+ },
+ {
+ "name": "isaacs",
+ "email": "i@izs.me"
+ },
+ {
+ "name": "othiym23",
+ "email": "ogd@aoaioxxysz.net"
+ }
+ ],
+ "name": "npmlog",
+ "optionalDependencies": {},
+ "readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/npm/npmlog.git"
},
- "main": "log.js",
"scripts": {
"test": "tap test/*.js"
},
- "dependencies": {
- "ansi": "~0.3.0",
- "are-we-there-yet": "~1.0.0",
- "gauge": "~1.2.0"
- },
- "devDependencies": {
- "tap": "~2.2.0"
- },
- "license": "ISC",
- "readme": "# npmlog\n\nThe logger util that npm uses.\n\nThis logger is very basic. It does the logging for npm. It supports\ncustom levels and colored output.\n\nBy default, logs are written to stderr. If you want to send log messages\nto outputs other than streams, then you can change the `log.stream`\nmember, or you can just listen to the events that it emits, and do\nwhatever you want with them.\n\n# Basic Usage\n\n```\nvar log = require('npmlog')\n\n// additional stuff ---------------------------+\n// message ----------+ |\n// prefix ----+ | |\n// level -+ | | |\n// v v v v\n log.info('fyi', 'I have a kitty cat: %j', myKittyCat)\n```\n\n## log.level\n\n* {String}\n\nThe level to display logs at. Any logs at or above this level will be\ndisplayed. The special level `silent` will prevent anything from being\ndisplayed ever.\n\n## log.record\n\n* {Array}\n\nAn array of all the log messages that have been entered.\n\n## log.maxRecordSize\n\n* {Number}\n\nThe maximum number of records to keep. If log.record gets bigger than\n10% over this value, then it is sliced down to 90% of this value.\n\nThe reason for the 10% window is so that it doesn't have to resize a\nlarge array on every log entry.\n\n## log.prefixStyle\n\n* {Object}\n\nA style object that specifies how prefixes are styled. (See below)\n\n## log.headingStyle\n\n* {Object}\n\nA style object that specifies how the heading is styled. (See below)\n\n## log.heading\n\n* {String} Default: \"\"\n\nIf set, a heading that is printed at the start of every line.\n\n## log.stream\n\n* {Stream} Default: `process.stderr`\n\nThe stream where output is written.\n\n## log.enableColor()\n\nForce colors to be used on all messages, regardless of the output\nstream.\n\n## log.disableColor()\n\nDisable colors on all messages.\n\n## log.enableProgress()\n\nEnable the display of log activity spinner and progress bar\n\n## log.disableProgress()\n\nDisable the display of a progress bar\n\n## log.enableUnicode()\n\nForce the unicode theme to be used for the progress bar.\n\n## log.disableUnicode()\n\nDisable the use of unicode in the progress bar.\n\n## log.setGaugeTemplate(template)\n\nOverrides the default gauge template.\n\n## log.pause()\n\nStop emitting messages to the stream, but do not drop them.\n\n## log.resume()\n\nEmit all buffered messages that were written while paused.\n\n## log.log(level, prefix, message, ...)\n\n* `level` {String} The level to emit the message at\n* `prefix` {String} A string prefix. Set to \"\" to skip.\n* `message...` Arguments to `util.format`\n\nEmit a log message at the specified level.\n\n## log\\[level](prefix, message, ...)\n\nFor example,\n\n* log.silly(prefix, message, ...)\n* log.verbose(prefix, message, ...)\n* log.info(prefix, message, ...)\n* log.http(prefix, message, ...)\n* log.warn(prefix, message, ...)\n* log.error(prefix, message, ...)\n\nLike `log.log(level, prefix, message, ...)`. In this way, each level is\ngiven a shorthand, so you can do `log.info(prefix, message)`.\n\n## log.addLevel(level, n, style, disp)\n\n* `level` {String} Level indicator\n* `n` {Number} The numeric level\n* `style` {Object} Object with fg, bg, inverse, etc.\n* `disp` {String} Optional replacement for `level` in the output.\n\nSets up a new level with a shorthand function and so forth.\n\nNote that if the number is `Infinity`, then setting the level to that\nwill cause all log messages to be suppressed. If the number is\n`-Infinity`, then the only way to show it is to enable all log messages.\n\n## log.newItem(name, todo, weight)\n\n* `name` {String} Optional; progress item name.\n* `todo` {Number} Optional; total amount of work to be done. Default 0.\n* `weight` {Number} Optional; the weight of this item relative to others. Default 1.\n\nThis adds a new `are-we-there-yet` item tracker to the progress tracker. The\nobject returned has the `log[level]` methods but is otherwise an\n`are-we-there-yet` `Tracker` object.\n\n## log.newStream(name, todo, weight)\n\nThis adds a new `are-we-there-yet` stream tracker to the progress tracker. The\nobject returned has the `log[level]` methods but is otherwise an\n`are-we-there-yet` `TrackerStream` object.\n\n## log.newGroup(name, weight)\n\nThis adds a new `are-we-there-yet` tracker group to the progress tracker. The\nobject returned has the `log[level]` methods but is otherwise an\n`are-we-there-yet` `TrackerGroup` object.\n\n# Events\n\nEvents are all emitted with the message object.\n\n* `log` Emitted for all messages\n* `log.<level>` Emitted for all messages with the `<level>` level.\n* `<prefix>` Messages with prefixes also emit their prefix as an event.\n\n# Style Objects\n\nStyle objects can have the following fields:\n\n* `fg` {String} Color for the foreground text\n* `bg` {String} Color for the background\n* `bold`, `inverse`, `underline` {Boolean} Set the associated property\n* `bell` {Boolean} Make a noise (This is pretty annoying, probably.)\n\n# Message Objects\n\nEvery log event is emitted with a message object, and the `log.record`\nlist contains all of them that have been created. They have the\nfollowing fields:\n\n* `id` {Number}\n* `level` {String}\n* `prefix` {String}\n* `message` {String} Result of `util.format()`\n* `messageRaw` {Array} Arguments to `util.format()`\n",
- "readmeFilename": "README.md",
- "gitHead": "6eaa3f8eec672bb7b56a4df9b55dbfff3b9c6a71",
- "bugs": {
- "url": "https://github.com/npm/npmlog/issues"
- },
- "homepage": "https://github.com/npm/npmlog#readme",
- "_id": "npmlog@2.0.0",
- "_shasum": "4076c200a3dda51133e6f3cf052130105f78bbdf",
- "_from": "npmlog@>=2.0.0 <2.1.0"
+ "version": "2.0.2"
}