150 lines
22 KiB
JSON
150 lines
22 KiB
JSON
|
{
|
||
|
"_args": [
|
||
|
[
|
||
|
{
|
||
|
"raw": "debug@2",
|
||
|
"scope": null,
|
||
|
"escapedName": "debug",
|
||
|
"name": "debug",
|
||
|
"rawSpec": "2",
|
||
|
"spec": ">=2.0.0 <3.0.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/stream-parser"
|
||
|
]
|
||
|
],
|
||
|
"_from": "debug@>=2.0.0 <3.0.0",
|
||
|
"_id": "debug@2.6.9",
|
||
|
"_inCache": true,
|
||
|
"_location": "/debug",
|
||
|
"_nodeVersion": "8.4.0",
|
||
|
"_npmOperationalInternal": {
|
||
|
"host": "s3://npm-registry-packages",
|
||
|
"tmp": "tmp/debug-2.6.9.tgz_1506087154503_0.5196126794908196"
|
||
|
},
|
||
|
"_npmUser": {
|
||
|
"name": "tootallnate",
|
||
|
"email": "nathan@tootallnate.net"
|
||
|
},
|
||
|
"_npmVersion": "5.3.0",
|
||
|
"_phantomChildren": {},
|
||
|
"_requested": {
|
||
|
"raw": "debug@2",
|
||
|
"scope": null,
|
||
|
"escapedName": "debug",
|
||
|
"name": "debug",
|
||
|
"rawSpec": "2",
|
||
|
"spec": ">=2.0.0 <3.0.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"_requiredBy": [
|
||
|
"/analytics-node",
|
||
|
"/body-parser",
|
||
|
"/express",
|
||
|
"/finalhandler",
|
||
|
"/get-uri",
|
||
|
"/http-proxy-agent",
|
||
|
"/https-proxy-agent",
|
||
|
"/jsonp",
|
||
|
"/pac-proxy-agent",
|
||
|
"/proxy-agent",
|
||
|
"/send",
|
||
|
"/stream-parser",
|
||
|
"/superagent-proxy"
|
||
|
],
|
||
|
"_resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
|
||
|
"_shasum": "5d128515df134ff327e90a4c93f4e077a536341f",
|
||
|
"_shrinkwrap": null,
|
||
|
"_spec": "debug@2",
|
||
|
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/stream-parser",
|
||
|
"author": {
|
||
|
"name": "TJ Holowaychuk",
|
||
|
"email": "tj@vision-media.ca"
|
||
|
},
|
||
|
"browser": "./src/browser.js",
|
||
|
"bugs": {
|
||
|
"url": "https://github.com/visionmedia/debug/issues"
|
||
|
},
|
||
|
"component": {
|
||
|
"scripts": {
|
||
|
"debug/index.js": "browser.js",
|
||
|
"debug/debug.js": "debug.js"
|
||
|
}
|
||
|
},
|
||
|
"contributors": [
|
||
|
{
|
||
|
"name": "Nathan Rajlich",
|
||
|
"email": "nathan@tootallnate.net",
|
||
|
"url": "http://n8.io"
|
||
|
},
|
||
|
{
|
||
|
"name": "Andrew Rhyne",
|
||
|
"email": "rhyneandrew@gmail.com"
|
||
|
}
|
||
|
],
|
||
|
"dependencies": {
|
||
|
"ms": "2.0.0"
|
||
|
},
|
||
|
"description": "small debugging utility",
|
||
|
"devDependencies": {
|
||
|
"browserify": "9.0.3",
|
||
|
"chai": "^3.5.0",
|
||
|
"concurrently": "^3.1.0",
|
||
|
"coveralls": "^2.11.15",
|
||
|
"eslint": "^3.12.1",
|
||
|
"istanbul": "^0.4.5",
|
||
|
"karma": "^1.3.0",
|
||
|
"karma-chai": "^0.1.0",
|
||
|
"karma-mocha": "^1.3.0",
|
||
|
"karma-phantomjs-launcher": "^1.0.2",
|
||
|
"karma-sinon": "^1.0.5",
|
||
|
"mocha": "^3.2.0",
|
||
|
"mocha-lcov-reporter": "^1.2.0",
|
||
|
"rimraf": "^2.5.4",
|
||
|
"sinon": "^1.17.6",
|
||
|
"sinon-chai": "^2.8.0"
|
||
|
},
|
||
|
"directories": {},
|
||
|
"dist": {
|
||
|
"integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
|
||
|
"shasum": "5d128515df134ff327e90a4c93f4e077a536341f",
|
||
|
"tarball": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz"
|
||
|
},
|
||
|
"gitHead": "13abeae468fea297d0dccc50bc55590809241083",
|
||
|
"homepage": "https://github.com/visionmedia/debug#readme",
|
||
|
"keywords": [
|
||
|
"debug",
|
||
|
"log",
|
||
|
"debugger"
|
||
|
],
|
||
|
"license": "MIT",
|
||
|
"main": "./src/index.js",
|
||
|
"maintainers": [
|
||
|
{
|
||
|
"name": "thebigredgeek",
|
||
|
"email": "rhyneandrew@gmail.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "kolban",
|
||
|
"email": "kolban1@kolban.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "tootallnate",
|
||
|
"email": "nathan@tootallnate.net"
|
||
|
},
|
||
|
{
|
||
|
"name": "tjholowaychuk",
|
||
|
"email": "tj@vision-media.ca"
|
||
|
}
|
||
|
],
|
||
|
"name": "debug",
|
||
|
"optionalDependencies": {},
|
||
|
"readme": "# debug\n[![Build Status](https://travis-ci.org/visionmedia/debug.svg?branch=master)](https://travis-ci.org/visionmedia/debug) [![Coverage Status](https://coveralls.io/repos/github/visionmedia/debug/badge.svg?branch=master)](https://coveralls.io/github/visionmedia/debug?branch=master) [![Slack](https://visionmedia-community-slackin.now.sh/badge.svg)](https://visionmedia-community-slackin.now.sh/) [![OpenCollective](https://opencollective.com/debug/backers/badge.svg)](#backers) \n[![OpenCollective](https://opencollective.com/debug/sponsors/badge.svg)](#sponsors)\n\n\n\nA tiny node.js debugging utility modelled after node core's debugging technique.\n\n**Discussion around the V3 API is under way [here](https://github.com/visionmedia/debug/issues/370)**\n\n## Installation\n\n```bash\n$ npm install debug\n```\n\n## Usage\n\n`debug` exposes a function; simply pass this function the name of your module, and it will return a decorated version of `console.error` for you to pass debug statements to. This will allow you to toggle the debug output for different parts of your module as well as the module as a whole.\n\nExample _app.js_:\n\n```js\nvar debug = require('debug')('http')\n , http = require('http')\n , name = 'My App';\n\n// fake app\n\ndebug('booting %s', name);\n\nhttp.createServer(function(req, res){\n debug(req.method + ' ' + req.url);\n res.end('hello\\n');\n}).listen(3000, function(){\n debug('listening');\n});\n\n// fake worker of some kind\n\nrequire('./worker');\n```\n\nExample _worker.js_:\n\n```js\nvar debug = require('debug')('worker');\n\nsetInterval(function(){\n debug('doing some work');\n}, 1000);\n```\n\n The __DEBUG__ environment variable is then used to enable these based on space or comma-delimited names. Here are some examples:\n\n ![debug http and worker](http://f.cl.ly/items/18471z1H402O24072r1J/Screenshot.png)\n\n ![debug worker](http://f.cl.ly/items/1X413v1a3M0d3C2c1E0i/Screenshot.png)\n\n#### Windows note\n\n On Windows the environment variable is set using the `set` command.\n\n ```cmd\n set DEBUG=*,-not_this\n ```\n\n Note that PowerShell uses different syntax to set environment variables.\n\n ```cmd\n $env:DEBUG = \"*,-not_this\"\n ```\n\nThen, run the program to be debugged as usual.\n\n## Millisecond diff\n\n When actively developing an application it can be useful to see when the time spent between one `debug()` call and the next. Suppose for example you invoke `debug()` before requesting a resource, and after as well, the \"+NNNms\" will show you how much time was spent between calls.\n\n ![](http://f.cl.ly/items/2i3h1d3t121M2Z1A3Q0N/Screenshot.png)\n\n When stdout is not a TTY, `Date#toUTCString()` is used, making it more useful for logging the debug information as shown below:\n\n ![](http://f.cl.ly/items/112H3i0e0o0P0a2Q2r11/Screenshot.png)\n\n## Conventions\n\n If you're using this in one or more of your libraries, you _should_ use the name of your library so that developers may toggle debugging as desired without guessing names. If you have more than one debuggers you _should_ prefix them with your library name and use \":\" to separate features. For example \"bodyParser\" from Connect would then be \"connect:bodyParser\".\n\n## Wildcards\n\n The `*` character may be used as a wildcard. Suppose for example your library has debuggers named \"connect:bodyParser\", \"connect:compress\", \"connect:session\", instead of listing all three with `DEBUG=connect:bodyParser,connect:compress,connect:session`, you may simply do `DEBUG=connect:*`, or to run everything using this module simply use `DEBUG=*`.\n\n You can also exclude specific debuggers by prefixing them with a \"-\" character. For example, `DEBUG=*,-connect:*` would include all debuggers except those starting with \"connect:\".\n\n## Environment Variables\n\n When running through Node.js, you can set a few environment variables that will\n change the behavior of the debug logging:\n\n| Name | Purpose |\n|-----------|---------------------------------------
|
||
|
"readmeFilename": "README.md",
|
||
|
"repository": {
|
||
|
"type": "git",
|
||
|
"url": "git://github.com/visionmedia/debug.git"
|
||
|
},
|
||
|
"version": "2.6.9"
|
||
|
}
|