{"name":"deprecate","version":"0.1.0","description":"Mark methods as deprecated and warn the user when they're called","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/brianc/node-deprecate.git"},"keywords":["deprecate"],"author":{"name":"Brian M. Carlson"},"license":"MIT","devDependencies":{"mocha":"~1.8.1"},"_id":"deprecate@0.1.0","dist":{"shasum":"c49058612dc6c8e5145eafe4839b8c2c7d041c14","tarball":"http://registry-npm.ywwl.com/deprecate/download/deprecate-0.1.0.tgz","integrity":"sha512-hGDyLk7ZdiEROjxSlIQvNu+jajVCdmVRaHZ3fjGw9QIce9blkKZAsfwD9rO3yMn/EpbL/QVMAp2pMLMwmWyGng==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBLnspGIK2F0o7dGaraOys+fbgPCzBTiJt52dhLuw2V6AiATg/WNAUE1l1Br/oNDsKnrkp3Kw/qXwzGnUEej2OCRuw=="}],"size":1655,"noattachment":false,"key":"/deprecate/-/deprecate-0.1.0.tgz"},"_from":".","_npmVersion":"1.2.11","_npmUser":{"name":"brianc","email":"brian.m.carlson@gmail.com"},"maintainers":[{"name":"brianc","email":"brian.m.carlson@gmail.com"}],"directories":{},"readme":"# deprecate\n\n[![Build Status](https://secure.travis-ci.org/brianc/node-deprecate.png?branch=master)](http://travis-ci.org/brianc/node-deprecate)\n\nMark a method as deprecated.  Write a message to a stream the first time the deprecated method is called.\n\n## api\n\n`var deprecate = require('deprecate');`\n\n### deprecate([string message1 [, string message2 [,...]]])\n\nCall `deprecate` within a function you are deprecating.  It will spit out all the messages to the console the first time _and only the first time_ the method is called.\n\n```js\nvar deprecate = require('deprecate');\n\nvar someDeprecatedFunction = function() {\n  deprecate('someDeprecatedFunction() is deprecated');\n};\n\nsomeDeprecatedFunction();\nsomeDeprecatedFunction();\nsomeDeprecatedFunction();\nconsole.log('end');\n\n//program output:\n\nWARNING!!\nsomeDeprecatedFunction() is deprecated\n\n\nend\n```\n\n### deprecate.color\n\nSet to `false` to not output a color.  Defaults to `'\\x1b[31;1m'` which is red.\n\n### deprecate.silence\n\nSet to `false` to do nothing at all when the deprecate method is called.  Useful in tests of the library you're deprecating things within.\n\n### deprecate.stream\n\nThe stream to which output is written.  Defaults to `process.stderr`\n\n## license\n\nMIT\n","publish_time":1362670706267,"_cnpm_publish_time":1362670706267,"dist-tags":{"latest":"1.1.1"}}