{"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":"fbdbba5de0aa1e0e2a78e4347a48b614c0ef10dd","bugs":{"url":"https://github.com/brianc/node-deprecate/issues"},"homepage":"https://github.com/brianc/node-deprecate#readme","_id":"deprecate@1.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.2","_npmUser":{"name":"brianc","email":"brian.m.carlson@gmail.com"},"dist":{"integrity":"sha512-b5dDNQYdy2vW9WXUD8+RQlfoxvqztLLhDE+T7Gd37I5E8My7nJkKu6FmhdDeRWJ8B+yjZKuwjCta8pgi8kgSqA==","shasum":"bbd069d62b232175b4e8459b2650cd2bad51f4b8","tarball":"http://registry-npm.ywwl.com/deprecate/download/deprecate-1.1.0.tgz","fileCount":5,"unpackedSize":5032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbhsmHCRA9TVsSAnZWagAAOKwQAI44nEzi9tSRaax8x+Hc\nbNNgR8x6PpjMV31Rrftg8aCsZbWwrp5OY8iebqT9FJjn3TP66L9oH5JUecja\nDmhHMCti/enQBedrI1e9hjwhCk4A6pw6lttZiUU4bXoo0Wt8c/hdg6drS99A\nqZuDIX0Ef9/skabuk4db7AbWf3mbwTWqCNOaqU0Kxq96jkhX9Ui7AUqqXYMc\nyURf75ZOQRBskBA6poI3vyKKp0MY8zBp86A8Qw8rHeb/wlROdOb9CebEBSBp\nRQcklbyN3aBsrI/CywJy8LZiNeXkY0zidHHFJH0sNfSYV0oW4niYss6zKMlC\nEd14jitdRMy/nNJq1XMXozEk9095qgtAQBSgkDSWWXc4KuIvn4NPYdMlRg7U\ngYwXk3fK+l6ZWK0NKrbypA4/x7+UAABTGQSLXpMkKJskwgFeJRpqW6KWPQ9M\nxmxH7Ntdk4M4CSeElfSZGd+VsmkJgvqJ0sy6zFjvsLi83JICuvFUtACHVU11\npcUrkug7P1JrphAq4bTkI/7rObi73TNvL/sVNsvBFjJdEKkZiUkIvNPrx+sB\nD10srgq+Ey2XYLFhuuIqhwg8zccdfZmeXIQsOmZb9k+aPFmb/Wmu8qAHuGbP\nS6GTZKxU984TLe8G9xhq8gFEH30tgm4ZUhRYdptcF0cTMW+q0nivscPJ9TkK\n1s6F\r\n=HsAp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCX7msG+ReoRBgHrhywqq+1XIp8FO1iQEjv2Z5j6S3a3wIgSKBwrxWp+pOCEN8MP5BRF3hfJwAfGgKqXUmGzwzBlSk="}],"size":1882,"noattachment":false,"key":"/deprecate/-/deprecate-1.1.0.tgz"},"maintainers":[{"name":"brianc","email":"brian.m.carlson@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/deprecate_1.1.0_1535560070377_0.7779493338858965"},"_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","publish_time":1535560070513,"_cnpm_publish_time":1535560070513,"dist-tags":{"latest":"1.1.1"}}