{"_id":"lazy-debug-legacy","_rev":"73728","name":"lazy-debug-legacy","description":"Generates module names for vision media's debug","dist-tags":{"latest":"0.0.1"},"maintainers":[{"name":"nmccready","email":"nemtcan@gmail.com"}],"time":{"modified":"2021-06-03T10:24:03.000Z","created":"2016-10-12T12:56:44.799Z","0.0.1":"2016-10-12T12:56:44.799Z"},"users":{},"author":{"name":"Nicholas McCready"},"repository":{"type":"git","url":"git+https://github.com/apihlaja/lazy-debug.git"},"versions":{"0.0.1":{"name":"lazy-debug-legacy","version":"0.0.1","description":"Generates module names for vision media's debug","main":"src/index.js","scripts":{"test":"mocha","print-test":"node scripts/print-test.js"},"repository":{"type":"git","url":"git+https://github.com/apihlaja/lazy-debug.git"},"keywords":["debug"],"author":{"name":"Nicholas McCready"},"originalAuthor":{"name":"Antti Pihlaja"},"license":"MIT","peerDependencies":{"debug":"*"},"dependencies":{},"devDependencies":{"chai":"^3.5.0","mocha":"^2.5.3"},"browserify":{"transform":[["babelify",{"presets":["es2015"]}]]},"gitHead":"af1051caa0f3a201ec6cf28fe8919871233bd4b0","bugs":{"url":"https://github.com/apihlaja/lazy-debug/issues"},"homepage":"https://github.com/apihlaja/lazy-debug#readme","_id":"lazy-debug-legacy@0.0.1","_shasum":"537716c0776e4cf79e3ed1b621f7658c2911b1b1","_from":".","_npmVersion":"2.15.1","_nodeVersion":"0.12.16","_npmUser":{"name":"nmccready","email":"nemtcan@gmail.com"},"dist":{"shasum":"537716c0776e4cf79e3ed1b621f7658c2911b1b1","size":3344,"noattachment":false,"key":"/lazy-debug-legacy/-/lazy-debug-legacy-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/lazy-debug-legacy/download/lazy-debug-legacy-0.0.1.tgz"},"maintainers":[{"name":"nmccready","email":"nemtcan@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/lazy-debug-legacy-0.0.1.tgz_1476277003029_0.5353004182688892"},"directories":{},"_resolved":"https://registry.npmjs.org/lazy-debug/-/lazy-debug-0.0.3.tgz","publish_time":1476277004799,"_cnpm_publish_time":1476277004799,"_hasShrinkwrap":false}},"readme":"# lazy-debug\n\n[![npm lazy-debug](https://nodei.co/npm/lazy-debug.png?compact=true)](https://www.npmjs.com/package/lazy-debug)\n\nNode.js module which generates app & module names for [visionmedia´s debug](https://github.com/visionmedia/debug) using `__filename` and package.json.\n\nBasic usage example:\n\n```javascript\nvar debug = require('lazy-debug-legacy').get(__filename);\n```\n\nDepending on `__filename`, debug name will be something like packageName:dir:file. File extension is removed and if file name is `index`, its removed too. For futher customization, to fit better for project structure, you can provide filter function:\n\n```javascript\nvar lazyDebug = require('lazy-debug-legacy');\nlazyDebug.configure({filter: function (pathArray) {\n  if ( pathArray[0] === 'src' ) {\n    pathArray.shift();\n  }\n  return pathArray;\n}});\n\n// now, when called in packageRoot/src/module1/index.js\nvar debug = require('lazy-debug-legacy').get(__filename);\n// debug name will be projectName:module1\n```\n\n\n## Install\n\n`npm install --save debug lazy-debug`\n\n## Tests\n\n`npm test`\n\n## License\n\n[The MIT License](LICENSE.md)\n","_attachments":{},"homepage":"https://github.com/apihlaja/lazy-debug#readme","bugs":{"url":"https://github.com/apihlaja/lazy-debug/issues"},"license":"MIT"}