{"_id":"grunt-remove-logging","_rev":"30-de17249857879ef594ee7f2f5df0514c","name":"grunt-remove-logging","description":"Grunt task to remove console logging statements","dist-tags":{"latest":"0.2.0"},"versions":{"0.0.1":{"name":"grunt-remove-logging","description":"Grunt task to remove console logging statements","version":"0.0.1","homepage":"","author":{"name":"Eric Hynds","email":"ehynds@gmail.com","url":"http://erichynds.com"},"repository":{"type":"git","url":"git://github.com/ehynds/grunt-remove-logging.git"},"bugs":{"url":"https://github.com/ehynds/grunt-remove-logging/issues"},"main":"grunt.js","bin":{"grunt-remove-logging":"bin/grunt-remove-logging"},"engines":{"node":"*"},"scripts":{"test":"grunt test"},"dependencies":{"grunt":"0.3.x"},"keywords":["gruntplugin","console","log","debugging","remove","statements"],"_id":"grunt-remove-logging@0.0.1","dist":{"shasum":"1d1e1d6a21c7f03b2cb8117dccd8ee4b09db7055","tarball":"https://registry.npmjs.org/grunt-remove-logging/-/grunt-remove-logging-0.0.1.tgz","integrity":"sha512-uGO7r29lGsQr8XHOMR2wv4r768T+oKZlvxv5oJVvp1FeROhESYoEcNF4kuSyIsgZrwjqGqahnNpA26aoYwseaw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0JOvhZrVGOH8N8xCdSU8kZUe34JjgdmHi3xMK54b0qgIgeFMsz7/o+C/j1N1sVU/igc99QTLAhePVI3hEuOfMzY0="}]},"maintainers":[{"name":"ehynds","email":"eric@hynds.net"}],"directories":{}},"0.0.2":{"name":"grunt-remove-logging","description":"Grunt task to remove console logging statements","version":"0.0.2","homepage":"","author":{"name":"Eric Hynds","email":"ehynds@gmail.com","url":"http://erichynds.com"},"repository":{"type":"git","url":"git://github.com/ehynds/grunt-remove-logging.git"},"bugs":{"url":"https://github.com/ehynds/grunt-remove-logging/issues"},"main":"grunt.js","bin":{"grunt-remove-logging":"bin/grunt-remove-logging"},"engines":{"node":"*"},"scripts":{"test":"grunt test"},"dependencies":{"grunt":"0.3.x"},"keywords":["gruntplugin","console","log","debugging","remove","statements"],"_id":"grunt-remove-logging@0.0.2","dist":{"shasum":"0f45d24837af0a2380498e3392df01ad9e533186","tarball":"https://registry.npmjs.org/grunt-remove-logging/-/grunt-remove-logging-0.0.2.tgz","integrity":"sha512-gqyTip1bWNGhB7Li07GHxr6UW4SoGlI/NrGDFUv35poqcfiLRT4Ug1WLNDkxAmpESgIUkYwNVTwAZhTrdiIXkg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIErlSp9GqXZGRqWBWVmmz1UPEbZSdRve+ghJDG4uHhK4AiABMGPKmbJ00uCqQl02eTHISaOmY67iJ2qvVNOcaP+/Vw=="}]},"maintainers":[{"name":"ehynds","email":"eric@hynds.net"}],"directories":{}},"0.0.3":{"name":"grunt-remove-logging","description":"Grunt task to remove console logging statements","version":"0.0.3","homepage":"","author":{"name":"Eric Hynds","email":"ehynds@gmail.com","url":"http://erichynds.com"},"repository":{"type":"git","url":"git://github.com/ehynds/grunt-remove-logging.git"},"bugs":{"url":"https://github.com/ehynds/grunt-remove-logging/issues"},"main":"grunt.js","bin":{"grunt-remove-logging":"bin/grunt-remove-logging"},"engines":{"node":"*"},"scripts":{"test":"grunt test"},"dependencies":{"grunt":"0.3.x"},"keywords":["gruntplugin","console","log","debugging","remove","statements"],"_id":"grunt-remove-logging@0.0.3","dist":{"shasum":"19aa05f202730ade2165ee152aaa8ddd2ec19083","tarball":"https://registry.npmjs.org/grunt-remove-logging/-/grunt-remove-logging-0.0.3.tgz","integrity":"sha512-5I2qu4YaLQ+e+SQXLkRwM+TjNJRtv00kNkg+WxkA9aPdd6yNQEJcRtv7TT+OUWSZzdGdVX1d5TQVt9ZcFIZECQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB9/u6jq4DljP63B4qT1++Qh1XXL0p6oDoFATO5gLkjvAiAYIN55VJRh87dBcf/RuhTBS+WYCrJiIbnUh0aKRhSlHg=="}]},"maintainers":[{"name":"ehynds","email":"eric@hynds.net"}],"directories":{}},"0.0.4":{"name":"grunt-remove-logging","description":"Grunt task to remove console logging statements","version":"0.0.4","homepage":"","author":{"name":"Eric Hynds","email":"ehynds@gmail.com","url":"http://erichynds.com"},"repository":{"type":"git","url":"git://github.com/ehynds/grunt-remove-logging.git"},"bugs":{"url":"https://github.com/ehynds/grunt-remove-logging/issues"},"main":"grunt.js","bin":{"grunt-remove-logging":"bin/grunt-remove-logging"},"engines":{"node":"*"},"scripts":{"test":"grunt test"},"dependencies":{"grunt":"0.3.x"},"keywords":["gruntplugin","console","log","debugging","remove","statements"],"_id":"grunt-remove-logging@0.0.4","dist":{"shasum":"7d5c1c8a18f574233250d6ab4cd1b1b9b43547fa","tarball":"https://registry.npmjs.org/grunt-remove-logging/-/grunt-remove-logging-0.0.4.tgz","integrity":"sha512-S4w3LdbDrv8WW/U40aH+DQvG4uKc3dgqpT4v4NwO+K9Rub/mzqfwNziV/Oa2EclzqdkYOZgWoG3KzoPUeJcdLA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC55SO9M+tvJCHWwElJZKHt7iNoLwsPt4DvY2soW5WP8AIhANQwvBOkyCn9XuDghq+qDaToF9a4UFI30EMbsEDgRwi3"}]},"maintainers":[{"name":"ehynds","email":"eric@hynds.net"}],"directories":{}},"0.0.5":{"name":"grunt-remove-logging","description":"Grunt task to remove console logging statements","version":"0.0.5","homepage":"","author":{"name":"Eric Hynds","email":"ehynds@gmail.com","url":"http://erichynds.com"},"repository":{"type":"git","url":"git://github.com/ehynds/grunt-remove-logging.git"},"bugs":{"url":"https://github.com/ehynds/grunt-remove-logging/issues"},"main":"grunt.js","bin":{"grunt-remove-logging":"bin/grunt-remove-logging"},"engines":{"node":"*"},"scripts":{"test":"grunt test"},"dependencies":{"grunt":"0.3.x"},"keywords":["gruntplugin","console","log","debugging","remove","statements"],"_id":"grunt-remove-logging@0.0.5","dist":{"shasum":"a521ce91876b6c501eee7da2739119c529fcc755","tarball":"https://registry.npmjs.org/grunt-remove-logging/-/grunt-remove-logging-0.0.5.tgz","integrity":"sha512-Jntd3nke8bmIeRXMO2hPt2O/hnGHr6bmP1A4vI/YUCXrFpKrQe6Y2WdhBC33vFj3hqGZWJ45HaBH7aKElIoOXg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDGyGMqonLVq61fwg6R0YhcFllH1L++UxrKt/KIdMqxQAiEAujY+wa+wJhpvwL5SlbTohcBuCY0ViPy5WmuGWd5MIBM="}]},"maintainers":[{"name":"ehynds","email":"eric@hynds.net"}],"directories":{}},"0.1.0":{"name":"grunt-remove-logging","description":"Grunt task to remove console logging statements","version":"0.1.0","homepage":"","author":{"name":"Eric Hynds","email":"ehynds@gmail.com","url":"http://erichynds.com"},"repository":{"type":"git","url":"git://github.com/ehynds/grunt-remove-logging.git"},"bugs":{"url":"https://github.com/ehynds/grunt-remove-logging/issues"},"main":"grunt.js","bin":{"grunt-remove-logging":"bin/grunt-remove-logging"},"engines":{"node":"*"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"0.4.x","grunt-contrib-jshint":"0.1.1","grunt-contrib-nodeunit":"0.1.2"},"keywords":["gruntplugin","console","log","debugging","remove","statements"],"_id":"grunt-remove-logging@0.1.0","dist":{"shasum":"d506a6c2cd9eb5ae97ada96186c831d0511613b7","tarball":"https://registry.npmjs.org/grunt-remove-logging/-/grunt-remove-logging-0.1.0.tgz","integrity":"sha512-+OiCGcVz7eKAY1FZD4xNZM3l0kU+iK4Tb0+sW3kYXiL92AdZAcXeehFOy69ZEJth4rQseIkIbzBma1WB0vYR8g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC/oWOZBpUBjerneRH8AUsSqhjgRlOwTqyj4UI+MyL3RAiEAgjcN2v/XeXyK1VOtF7OvSoJJu6a1CuysgkLd5pPNafA="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"ehynds","email":"eric@hynds.net"},"maintainers":[{"name":"ehynds","email":"eric@hynds.net"}],"directories":{}},"0.1.1":{"name":"grunt-remove-logging","description":"Grunt task to remove console logging statements","version":"0.1.1","homepage":"","author":{"name":"Eric Hynds","email":"ehynds@gmail.com","url":"http://erichynds.com"},"repository":{"type":"git","url":"git://github.com/ehynds/grunt-remove-logging.git"},"bugs":{"url":"https://github.com/ehynds/grunt-remove-logging/issues"},"main":"grunt.js","bin":{"grunt-remove-logging":"bin/grunt-remove-logging"},"engines":{"node":"*"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"0.4.x","grunt-contrib-jshint":"0.1.1","grunt-contrib-nodeunit":"0.1.2"},"keywords":["gruntplugin","console","log","debugging","remove","statements"],"_id":"grunt-remove-logging@0.1.1","dist":{"shasum":"102814293d0507a1c67ba3d8c7cb5e98efc10891","tarball":"https://registry.npmjs.org/grunt-remove-logging/-/grunt-remove-logging-0.1.1.tgz","integrity":"sha512-4tD4h5+jg9tO5L5C+yoLaEmrhCf07+4wkOYjF45hSLyIufMuejh4/LoIAKXZ6EgS2KikHXvBvOjjygncxB1ZuA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDoB/+WsD9cEDsGMvsXS1SHxjPSWEna1v1BghqcAnXRhAIgDEQX4fjkWdt0UzXWB9fJNuisga3BARwYT7o9iRTpgMU="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"ehynds","email":"eric@hynds.net"},"maintainers":[{"name":"ehynds","email":"eric@hynds.net"}],"directories":{}},"0.2.0":{"name":"grunt-remove-logging","description":"Grunt task to remove console logging statements","version":"0.2.0","homepage":"","author":{"name":"Eric Hynds","email":"ehynds@gmail.com","url":"http://erichynds.com"},"contributors":{"name":"Thomas Welton","email":"thomaswelton@me.com","url":"https://github.com/thomaswelton"},"repository":{"type":"git","url":"git://github.com/ehynds/grunt-remove-logging.git"},"bugs":{"url":"https://github.com/ehynds/grunt-remove-logging/issues"},"main":"grunt.js","bin":{"grunt-remove-logging":"bin/grunt-remove-logging"},"engines":{"node":"*"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.4.2","grunt-contrib-jshint":"~0.7.2","grunt-contrib-nodeunit":"~0.2.2"},"keywords":["gruntplugin","console","log","debugging","remove","statements"],"_id":"grunt-remove-logging@0.2.0","dist":{"shasum":"4686590f7003e21fdc4a21c5f738e88b35e00916","tarball":"https://registry.npmjs.org/grunt-remove-logging/-/grunt-remove-logging-0.2.0.tgz","integrity":"sha512-M7fJCy8z+Yb01gADeAFsN27MzT8WRFcPjea0seoONzoTokTdlT/2UCJFbgFqK6+acpFBI/CzVQQJV5GnbyoUjA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICvlgxvUgZLsOwGtNDcL1aAI1DbJgg5Rfn+KRrhjeACeAiEA0bdwbHI8DKrrmhPh28aWeoxRiBknL3nkgLq37usmaBQ="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"ehynds","email":"eric@hynds.net"},"maintainers":[{"name":"ehynds","email":"eric@hynds.net"}],"directories":{}}},"readme":"## About\n\nThis task removes all console logging statements from your source code.\n\n## Getting Started\n\nInstall this plugin with the command:\n\n```js\nnpm install grunt-remove-logging\n```\n\nNext, add this line to your project's grunt file:\n\n```js\ngrunt.loadNpmTasks(\"grunt-remove-logging\");\n```\n\nLastly, add the configuration settings (see below) to your grunt file.\n\n## Documentation\n\nThis task has two required properties, `src` and `dest`. `src` is the path to\nyour source file and `dest` is the file this task will write to (relative to the\ngrunt.js file).\n\nAn example configuration looks like this:\n\n```js\ngrunt.initConfig({\n  removelogging: {\n    dist: {\n      src: \"js/application.js\",\n      dest: \"js/application-clean.js\",\n\n      options: {\n        // see below for options. this is optional.\n      }\n    }\n  }\n});\n```\n\nTo run this task against multiple files and **automatically overwrite them**\nwith the resultant output, omit the `dist` option:\n\n```js\ngrunt.initConfig({\n  removelogging: {\n    dist: {\n      src: \"dist/**/*.js\" // Each file will be overwritten with the output!\n    }\n  }\n});\n```\n\n### Optional Configuration Properties\n\nThis plugin can be customized by specifying the following options:\n\n* `replaceWith`: A value to replace logging statements with. This option defaults to an empty string. If you use fancy statements like `console && console.log(\"foo\");`, you may choose to specify a `replaceWith` value like `0;` so that your scripts don't completely break.\n* `namespace`: An array of object names that logging methods are attached to.\nDefaults to `[ 'console', 'window.console' ]`. If you use a custom logger, like\n`MyApp.logger.log(foo)`, you would set this option to `[MyApp.logger]`.\n* `methods`: An array of method names to remove. Defaults to [all the methods](http://getfirebug.com/wiki/index.php/Console_API) in the Firebug console API. This option is useful if you want to strip out all `log` methods, but keep `warn` for example.\n\n### Skipping Individual Statements\n\nYou can tell this task to keep specific logging statements by adding the comment directive `/*RemoveLogging:skip*/` after the statement:\n\n```js\nconsole.log(\"foo\");/*RemoveLogging:skip*/\n\n// or:\n\nconsole.log(\"foo\")/*RemoveLogging:skip*/;\n\n// whitespace is fine too, whatever floats your boat:\n\nconsole.log(\"foo\") /* RemoveLogging:skip */;\n```\n","maintainers":[{"email":"ehynds+npm@gmail.com","name":"ehynds"}],"time":{"modified":"2022-06-18T15:49:20.426Z","created":"2012-09-24T16:31:03.860Z","0.0.1":"2012-09-24T16:31:04.557Z","0.0.2":"2012-09-25T17:52:12.473Z","0.0.3":"2012-10-27T12:45:47.311Z","0.0.4":"2012-11-01T15:49:35.718Z","0.0.5":"2012-11-01T17:14:07.164Z","0.1.0":"2013-02-18T21:44:26.799Z","0.1.1":"2013-05-24T16:26:09.113Z","0.2.0":"2013-12-17T15:20:21.526Z"},"author":{"name":"Eric Hynds","email":"ehynds@gmail.com","url":"http://erichynds.com"},"repository":{"type":"git","url":"git://github.com/ehynds/grunt-remove-logging.git"},"users":{"mykepreuss":true,"furzeface":true,"zhaoming":true,"amaxwell01":true,"martl":true,"jakedalus":true,"shahyar":true},"keywords":["gruntplugin","console","log","debugging","remove","statements"],"contributors":{"name":"Thomas Welton","email":"thomaswelton@me.com","url":"https://github.com/thomaswelton"},"bugs":{"url":"https://github.com/ehynds/grunt-remove-logging/issues"},"readmeFilename":"README.md"}