{"_id":"deprecate","_rev":"82523","name":"deprecate","description":"Mark methods as deprecated and warn the user when they're called","dist-tags":{"latest":"1.1.1"},"maintainers":[{"name":"brianc","email":"brian.m.carlson@gmail.com"}],"time":{"modified":"2022-09-06T15:31:08.000Z","created":"2013-03-07T15:38:26.267Z","1.1.1":"2019-07-25T18:18:16.572Z","1.1.0":"2018-08-29T16:27:50.513Z","1.0.0":"2016-08-18T20:25:02.630Z","0.1.0":"2013-03-07T15:38:26.267Z"},"users":{},"author":{"name":"Brian M. Carlson"},"repository":{"type":"git","url":"git://github.com/brianc/node-deprecate.git"},"versions":{"1.1.1":{"name":"deprecate","version":"1.1.1","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":"6fac708cad8f491e2bde3dd657280201b25440f0","bugs":{"url":"https://github.com/brianc/node-deprecate/issues"},"homepage":"https://github.com/brianc/node-deprecate#readme","_id":"deprecate@1.1.1","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"shasum":"4632e981fc815eeaf00be945a40359c0f8bf9913","size":1881,"noattachment":false,"key":"/deprecate/-/deprecate-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/deprecate/download/deprecate-1.1.1.tgz"},"maintainers":[{"name":"brianc","email":"brian.m.carlson@gmail.com"}],"_npmUser":{"name":"brianc","email":"brian.m.carlson@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/deprecate_1.1.1_1564078696412_0.772591963268811"},"_hasShrinkwrap":false,"publish_time":1564078696572,"_cnpm_publish_time":1564078696572},"1.1.0":{"name":"deprecate","version":"1.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"},"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","size":1742,"noattachment":false,"key":"/deprecate/-/deprecate-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/deprecate/download/deprecate-1.1.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":{},"publish_time":1535560070513,"_hasShrinkwrap":false,"_cnpm_publish_time":1535560070513,"_cnpmcore_publish_time":"2021-12-13T13:16:38.269Z"},"1.0.0":{"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","size":1742,"noattachment":false,"key":"/deprecate/-/deprecate-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/deprecate/download/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":{},"publish_time":1471551902630,"_cnpm_publish_time":1471551902630,"_hasShrinkwrap":false},"0.1.0":{"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"},"readmeFilename":"README.md","_id":"deprecate@0.1.0","dist":{"shasum":"c49058612dc6c8e5145eafe4839b8c2c7d041c14","size":1655,"noattachment":false,"key":"/deprecate/-/deprecate-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/deprecate/download/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":{},"publish_time":1362670706267,"_cnpm_publish_time":1362670706267,"_hasShrinkwrap":false}},"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","_attachments":{},"homepage":"https://github.com/brianc/node-deprecate#readme","bugs":{"url":"https://github.com/brianc/node-deprecate/issues"},"license":"MIT"}