{"_id":"mockconsole","_rev":"5-5da75700d3bcf6bb67e51aa285336329","name":"mockconsole","description":"An object with all the same methods as console in the browser. But does nothing.","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"mockconsole","version":"0.0.1","description":"An object with all the same methods as console in the browser. But does nothing.","main":"mockconsole.js","repository":{"type":"git","url":"https://github.com/HenrikJoreteg/mockconsole"},"keywords":["browser","console","logging"],"author":{"name":"Henrik Joreteg","email":"henrik@andyet.net"},"license":"MIT","devDependencies":{"browserify":"2.x"},"readme":"# mockconsole\n\n## What is this?\n\nA tiny browser module that builds and returns an object with the same methods as `console` but with no-op functions.\n\nSuitable for use with browserify/CommonJS on the client. \n\nIf you want to use as a standalone or with AMD use mockconsole.umd.js.\n\nCan be handy for modules that export constructors where you wnat to be able to pass in a logger as an option.\n\n## Installing\n\n```\nnpm install mockconsole\n```\n\n## Demo / How to use it\n\n\n```js\nvar mockconsole = require('mockconsole');\n\n\n// this way someone can pass in `window.console` or something\n// like github.com/latentflip/bows as the logger for logging\n// If it's not passed in no code needs to change.\nfunction Human(options) {\n    this.console = options.logger || mockconsole;\n}\n\nHuman.prototype.dance = function () {\n    this.console.log('dance human!');   \n};\n```\n\n## License\n\nMIT\n\n## Created By\n\nIf you like this, follow: [@HenrikJoreteg](http://twitter.com/henrikjoreteg) on twitter.\n\n","_id":"mockconsole@0.0.1","dist":{"shasum":"d62a7ed85530964abcd24edb9f30fa58bbce56c6","tarball":"https://registry.npmjs.org/mockconsole/-/mockconsole-0.0.1.tgz","integrity":"sha512-9wFq0SJFTaxxEYmfjWf4U8uYku5HKwn3OsTOct3aQFLDois6HrLse2iZAy7v5hyTNts2XH6Y1LW8iMXWxiH6Vg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDYnOr9E2/EW6IcP6kjXJ7ny6PtA/7D21szACRRPxUC2wIgBwyLZQCCJEFVZYahn1tSj4wr1YHDm24TNU5O7rVkjU0="}]},"_npmVersion":"1.1.62","_npmUser":{"name":"henrikjoreteg","email":"henrik@andyet.net"},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"}]}},"readme":"# mockconsole\n\n## What is this?\n\nA tiny browser module that builds and returns an object with the same methods as `console` but with no-op functions.\n\nSuitable for use with browserify/CommonJS on the client. \n\nIf you want to use as a standalone or with AMD use mockconsole.umd.js.\n\nCan be handy for modules that export constructors where you wnat to be able to pass in a logger as an option.\n\n## Installing\n\n```\nnpm install mockconsole\n```\n\n## Demo / How to use it\n\n\n```js\nvar mockconsole = require('mockconsole');\n\n\n// this way someone can pass in `window.console` or something\n// like github.com/latentflip/bows as the logger for logging\n// If it's not passed in no code needs to change.\nfunction Human(options) {\n    this.console = options.logger || mockconsole;\n}\n\nHuman.prototype.dance = function () {\n    this.console.log('dance human!');   \n};\n```\n\n## License\n\nMIT\n\n## Created By\n\nIf you like this, follow: [@HenrikJoreteg](http://twitter.com/henrikjoreteg) on twitter.\n\n","maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"}],"time":{"modified":"2022-06-20T02:17:44.300Z","created":"2013-07-21T09:01:26.601Z","0.0.1":"2013-07-21T09:01:27.675Z"},"author":{"name":"Henrik Joreteg","email":"henrik@andyet.net"},"repository":{"type":"git","url":"https://github.com/HenrikJoreteg/mockconsole"}}