{"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":{"integrity":"sha512-ZGDXefq1xknT292LnorMY5s8UVU08/WKdzDZCUT6t9JzsiMSP4uzUhgpqugffNVcT5WC6wMBiSQ+LFjlv3v7iQ==","shasum":"4632e981fc815eeaf00be945a40359c0f8bf9913","tarball":"http://registry-npm.ywwl.com/deprecate/download/deprecate-1.1.1.tgz","fileCount":5,"unpackedSize":5074,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdOfJpCRA9TVsSAnZWagAAhsIP/2dDGUFsnpOZRlEZa//F\noqlyqjIFctbXzcGkcNUazHMuRJYPRjcEJgvK4B2/30IfF/+1o+lCGa4EDZWh\na8WLVz3IO+Tw3HO6vY4P2qYHHRu4LYAcCuurbkqrIiwXbNtWd0XMCsfr7fta\naItxCtG5+XfTzTasS59AksqEpCFqVQEOPI8tqk6SRBExHyKngXUF2h3qja9V\n7KUEwtAg81ArxTkEG6qmUgRYsr4gQ9bCsOcsaUJdHo+chutpSHbsfk4p15lQ\nlkfrVcXvaYcDEbf9sPXb6EIRg2s3pe+w9QS1w3Ln3J53qmlX4gC1jP8ZItZa\nKYFaWDuFS4Aj2l+5AtE0oYvLblMnsiYEA/Dm6euFL0G9LW41B7vwETdv4lfD\ntNgPeNJ6Vhgq89zRbh6DASbpjM7BM4SCpZISgCG41YV9YpRHd1H1DCYI6BRU\nrbQbeSH6RdaxeVeRUpY6KhRBI/IV98BDHl8jlDrExA+mFw9VEBkZAPaXlqcH\nA6CIipJzFA4KRR7lGX3K+9i2lxlPwtLK6OWgzN0gYcx4Y+tskOwInWTwOOEx\nLXWeikr7I1N5GkB33bElkKAF1Q+K5gx2bIgE/CpSV+hhn9YkCOeiZZYnoNqK\n9WTOVRYWIIAPamIB11urT4SXr0p8yF+86C6siRpIOLIqf7m6JodtYyX8zGyE\nxyFj\r\n=IMIv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDVosySxaQsdN6R2eufPbHuu534KBlRcpBSfr8A9O+cCQIgXJWvJO0ifXXvXvo1H7oCs6wP259w7j9hWi9QD6yJpH8="}],"size":1881,"noattachment":false,"key":"/deprecate/-/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,"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":1564078696572,"_cnpm_publish_time":1564078696572,"dist-tags":{"latest":"1.1.1"}}