{"versions":{"2.0.2":{"name":"@d-fischer/deprecate","version":"2.0.2","description":"Mark methods as deprecated and warn the user when they're called","main":"index.js","types":"index.d.ts","exports":{".":{"require":"./index.js","import":"./index.mjs"},"./package":"./package.json","./package.json":"./package.json"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/d-fischer/node-deprecate.git"},"keywords":["deprecate"],"author":{"name":"Daniel Fischer","email":"daniel@d-fischer.dev"},"license":"MIT","devDependencies":{"@types/node":"^12.12.62","mocha":"~1.8.1"},"gitHead":"acecaf1bdef7f08afa6fceab33561e9d96f3ab0f","bugs":{"url":"https://github.com/d-fischer/node-deprecate/issues"},"homepage":"https://github.com/d-fischer/node-deprecate#readme","_id":"@d-fischer/deprecate@2.0.2","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"shasum":"d1f0d40acc881edd771cace7992a1070460608c8","size":4168,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@d-fischer/deprecate/-/deprecate-2.0.2.tgz","integrity":"sha512-wlw3HwEanJFJKctwLzhfOM6LKwR70FPfGZGoKOhWBKyOPXk+3a9Cc6S9zhm6tka7xKtpmfxVIReGUwPnMbIaZg=="},"maintainers":[{"name":"anonymous","email":"daniel@d-fischer.dev"}],"_npmUser":{"name":"anonymous","email":"daniel@d-fischer.dev"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/deprecate_2.0.2_1601769540483_0.9379975475252895"},"_hasShrinkwrap":false,"publish_time":1601769540594,"_cnpm_publish_time":1601769540594,"_cnpmcore_publish_time":"2021-12-16T23:55:41.312Z","contributors":[]},"2.0.1":{"name":"@d-fischer/deprecate","version":"2.0.1","description":"Mark methods as deprecated and warn the user when they're called","main":"index.js","module":"index.mjs","types":"index.d.ts","exports":{".":{"require":"./index.js","import":"./index.mjs"},"./package":"./package.json","./package.json":"./package.json"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/d-fischer/node-deprecate.git"},"keywords":["deprecate"],"author":{"name":"Daniel Fischer","email":"daniel@d-fischer.dev"},"license":"MIT","devDependencies":{"@types/node":"^13.13.4","mocha":"~1.8.1"},"gitHead":"d6e3bf817a2a65cf36b239f31d31c921dc0d9ed4","bugs":{"url":"https://github.com/d-fischer/node-deprecate/issues"},"homepage":"https://github.com/d-fischer/node-deprecate#readme","_id":"@d-fischer/deprecate@2.0.1","_nodeVersion":"14.0.0","_npmVersion":"6.14.4","dist":{"shasum":"5cccedff47477ae9e055a8be799ac8ac3dd22eda","size":2802,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@d-fischer/deprecate/-/deprecate-2.0.1.tgz","integrity":"sha512-HrK3Yu3iRJo1YzG52bt2TyhRGZRIyFumbV/fH0h6IWa43ZJeAI3o4LXzBVLLdA7ITLTMtYP8yJnpHuFftQwQ2A=="},"maintainers":[{"name":"anonymous","email":"daniel@d-fischer.dev"}],"_npmUser":{"name":"anonymous","email":"daniel@d-fischer.dev"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/deprecate_2.0.1_1588361782231_0.04652691344305793"},"_hasShrinkwrap":false,"publish_time":1588361782339,"_cnpm_publish_time":1588361782339,"_cnpmcore_publish_time":"2021-12-16T23:55:41.522Z","contributors":[]},"2.0.0":{"name":"@d-fischer/deprecate","version":"2.0.0","description":"Mark methods as deprecated and warn the user when they're called","main":"index.js","module":"index.mjs","exports":{".":{"require":"./index.js","import":"./index.mjs"},"./package":"./package.json","./package.json":"./package.json"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/d-fischer/node-deprecate.git"},"keywords":["deprecate"],"author":{"name":"Daniel Fischer","email":"daniel@d-fischer.dev"},"license":"MIT","devDependencies":{"mocha":"~1.8.1"},"gitHead":"716d21694888a5b0b84573c3a820e4e8857643dd","bugs":{"url":"https://github.com/d-fischer/node-deprecate/issues"},"homepage":"https://github.com/d-fischer/node-deprecate#readme","_id":"@d-fischer/deprecate@2.0.0","_nodeVersion":"13.8.0","_npmVersion":"6.13.6","dist":{"shasum":"ca7d506c6c3e8473f8971fd4e3218f279fde7ebb","size":2510,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@d-fischer/deprecate/-/deprecate-2.0.0.tgz","integrity":"sha512-DJaSafIrmRr+vIty/iEmacWKTL17dsP0XHPtwA9SqRO5ZBf+IX+YZBsrS7lqFUXQYI8e2h4VmVKHqGk0+X8RFg=="},"maintainers":[{"name":"anonymous","email":"daniel@d-fischer.dev"}],"_npmUser":{"name":"anonymous","email":"daniel@d-fischer.dev"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/deprecate_2.0.0_1588175996483_0.17291732564672935"},"_hasShrinkwrap":false,"publish_time":1588175996622,"_cnpm_publish_time":1588175996622,"_cnpmcore_publish_time":"2021-12-16T23:55:41.712Z","contributors":[]}},"dist-tags":{"latest":"2.0.2"},"name":"@d-fischer/deprecate","time":{"created":"2022-01-27T09:08:30.480Z","modified":"2023-07-24T19:12:13.766Z","2.0.2":"2020-10-03T23:59:00.594Z","2.0.1":"2020-05-01T19:36:22.339Z","2.0.0":"2020-04-29T15:59:56.622Z"},"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","users":{}}