{"name":"deprecate","version":"1.0.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"},"gitHead":"9cd7d72f1ae494f3df862dd50b711a32674ba7da","bugs":{"url":"https://github.com/brianc/node-deprecate/issues"},"homepage":"https://github.com/brianc/node-deprecate#readme","_id":"deprecate@1.0.0","_shasum":"661490ed2428916a6c8883d8834e5646f4e4a4a8","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"brianc","email":"brian.m.carlson@gmail.com"},"dist":{"shasum":"661490ed2428916a6c8883d8834e5646f4e4a4a8","tarball":"http://registry-npm.ywwl.com/deprecate/download/deprecate-1.0.0.tgz","integrity":"sha512-3OFRdih9G2VYAfA/H6vizXyCvwLGLr9hdAh1z39HY3lAKbi2/BELQDVhbZ6AaTOjdh5BAi/GJ1QphQBHjCyXVw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH92QwOTEm3DHfeCbMjlNXoP7tNbUVyvVU1z4bcDvCWJAiEAwWS/BhaSh0S7WItiEBviEU+2ESzowsaiSqv79A7ONH4="}],"size":1742,"noattachment":false,"key":"/deprecate/-/deprecate-1.0.0.tgz"},"maintainers":[{"name":"brianc","email":"brian.m.carlson@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/deprecate-1.0.0.tgz_1471551901623_0.828695727745071"},"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":1471551902630,"_cnpm_publish_time":1471551902630,"dist-tags":{"latest":"1.1.1"}}