blob: 83eb2c9bf62fa8cf9cddbc64ba191c989ac932ff [file] [log] [blame]
{
"_from": "debuglog@>=1.0.1 <2.0.0",
"_id": "debuglog@1.0.1",
"_location": "/npm/read-installed/debuglog",
"_npmUser": {
"email": "sam@strongloop.com",
"name": "octet"
},
"_npmVersion": "1.4.3",
"_phantomChildren": {},
"_requiredBy": [
"/npm/read-installed",
"/npm/read-installed/readdir-scoped-modules"
],
"_resolved": "https://registry.npmjs.org/debuglog/-/debuglog-1.0.1.tgz",
"_shasum": "aa24ffb9ac3df9a2351837cfb2d279360cd78492",
"_shrinkwrap": null,
"author": {
"email": "sam@strongloop.com",
"name": "Sam Roberts"
},
"browser": {
"util": false
},
"bugs": {
"url": "https://github.com/sam-github/node-debuglog/issues"
},
"dependencies": {},
"description": "backport of util.debuglog from node v0.11",
"devDependencies": {},
"directories": {},
"dist": {
"shasum": "aa24ffb9ac3df9a2351837cfb2d279360cd78492",
"tarball": "http://registry.npmjs.org/debuglog/-/debuglog-1.0.1.tgz"
},
"engines": {
"node": "*"
},
"homepage": "https://github.com/sam-github/node-debuglog",
"license": "MIT",
"main": "debuglog.js",
"maintainers": [
{
"email": "sam@strongloop.com",
"name": "octet"
}
],
"name": "debuglog",
"optionalDependencies": {},
"readme": "# debuglog - backport of util.debuglog() from node v0.11\n\nTo facilitate using the `util.debuglog()` function that will be available when\nnode v0.12 is released now, this is a copy extracted from the source.\n\n## require('debuglog')\n\nReturn `util.debuglog`, if it exists, otherwise it will return an internal copy\nof the implementation from node v0.11.\n\n## debuglog(section)\n\n* `section` {String} The section of the program to be debugged\n* Returns: {Function} The logging function\n\nThis is used to create a function which conditionally writes to stderr\nbased on the existence of a `NODE_DEBUG` environment variable. If the\n`section` name appears in that environment variable, then the returned\nfunction will be similar to `console.error()`. If not, then the\nreturned function is a no-op.\n\nFor example:\n\n```javascript\nvar debuglog = util.debuglog('foo');\n\nvar bar = 123;\ndebuglog('hello from foo [%d]', bar);\n```\n\nIf this program is run with `NODE_DEBUG=foo` in the environment, then\nit will output something like:\n\n FOO 3245: hello from foo [123]\n\nwhere `3245` is the process id. If it is not run with that\nenvironment variable set, then it will not print anything.\n\nYou may separate multiple `NODE_DEBUG` environment variables with a\ncomma. For example, `NODE_DEBUG=fs,net,tls`.\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/sam-github/node-debuglog.git"
},
"version": "1.0.1"
}