{"_id":"deprecated","_rev":"69922","name":"deprecated","description":"Tool for deprecating things","dist-tags":{"latest":"0.0.2"},"maintainers":[{"name":"fractal","email":"contact@wearefractal.com"}],"time":{"modified":"2021-06-03T10:23:07.000Z","created":"2014-01-24T05:00:21.703Z","0.0.2":"2017-05-13T20:00:14.146Z","0.0.1":"2014-01-24T05:00:21.703Z"},"users":{"simplyianm":true,"nice_body":true,"asaupup":true,"phoenix-xsy":true,"tunnckocore":true,"nuwaio":true},"author":{"name":"Fractal","email":"contact@wearefractal.com","url":"http://wearefractal.com/"},"repository":{"type":"git","url":"git://github.com/wearefractal/deprecated.git"},"versions":{"0.0.2":{"name":"deprecated","description":"Tool for deprecating things","version":"0.0.2","homepage":"http://github.com/wearefractal/deprecated","repository":{"type":"git","url":"git://github.com/wearefractal/deprecated.git"},"author":{"name":"Fractal","email":"contact@wearefractal.com","url":"http://wearefractal.com/"},"main":"./index.js","typings":"./index.d.ts","dependencies":{},"devDependencies":{"mocha":"~1.17.0","should":"~3.1.0","mocha-lcov-reporter":"~0.0.1","coveralls":"~2.6.1","istanbul":"~0.2.3","rimraf":"~2.2.5","jshint":"~2.4.1"},"scripts":{"test":"mocha --reporter spec && jshint","coveralls":"istanbul cover _mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage"},"engines":{"node":">= 0.9"},"licenses":[{"type":"MIT","url":"http://github.com/wearefractal/deprecated/raw/master/LICENSE"}],"gitHead":"51037b0b76cec197289e4d5c90aad3990a87ad9e","bugs":{"url":"https://github.com/wearefractal/deprecated/issues"},"_id":"deprecated@0.0.2","_shasum":"bc9dcf9bce9174fcf9090cf1295131c439c682fd","_from":".","_npmVersion":"4.5.0","_nodeVersion":"7.7.4","_npmUser":{"name":"contra","email":"contra@wearefractal.com"},"dist":{"shasum":"bc9dcf9bce9174fcf9090cf1295131c439c682fd","size":2653,"noattachment":false,"key":"/deprecated/-/deprecated-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/deprecated/download/deprecated-0.0.2.tgz"},"maintainers":[{"name":"fractal","email":"contact@wearefractal.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/deprecated-0.0.2.tgz_1494705612730_0.08984274952672422"},"directories":{},"publish_time":1494705614146,"_cnpm_publish_time":1494705614146,"_hasShrinkwrap":false},"0.0.1":{"name":"deprecated","description":"Tool for deprecating things","version":"0.0.1","homepage":"http://github.com/wearefractal/deprecated","repository":{"type":"git","url":"git://github.com/wearefractal/deprecated.git"},"author":{"name":"Fractal","email":"contact@wearefractal.com","url":"http://wearefractal.com/"},"main":"./index.js","dependencies":{},"devDependencies":{"mocha":"~1.17.0","should":"~3.1.0","mocha-lcov-reporter":"~0.0.1","coveralls":"~2.6.1","istanbul":"~0.2.3","rimraf":"~2.2.5","jshint":"~2.4.1"},"scripts":{"test":"mocha --reporter spec && jshint","coveralls":"istanbul cover _mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage"},"engines":{"node":">= 0.9"},"licenses":[{"type":"MIT","url":"http://github.com/wearefractal/deprecated/raw/master/LICENSE"}],"bugs":{"url":"https://github.com/wearefractal/deprecated/issues"},"_id":"deprecated@0.0.1","dist":{"shasum":"f9c9af5464afa1e7a971458a8bdef2aa94d5bb19","size":2498,"noattachment":false,"key":"/deprecated/-/deprecated-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/deprecated/download/deprecated-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"fractal","email":"contact@wearefractal.com"},"maintainers":[{"name":"fractal","email":"contact@wearefractal.com"}],"directories":{},"publish_time":1390539621703,"_cnpm_publish_time":1390539621703,"_hasShrinkwrap":false}},"readme":"# deprecated [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Dependency Status][david-image]][david-url]\n\n\n## Information\n\n<table>\n<tr> \n<td>Package</td><td>deprecated</td>\n</tr>\n<tr>\n<td>Description</td>\n<td>Tool for deprecating things</td>\n</tr>\n<tr>\n<td>Node Version</td>\n<td>>= 0.9</td>\n</tr>\n</table>\n\n## Usage\n\n```javascript\nvar oldfn = function(a,b) {\n  return a+b;\n};\n\n// returns a new wrapper function that logs the deprecated function once\nvar somefn = deprecated.method('dont use this anymore', console.log, oldfn);\n\nvar someobj = {};\n\n// set up a getter/set for field that logs deprecated message once\ndeprecated.field('dont use this anymore', console.log, someobj, 'a', 123);\n\nconsole.log(someobj.a); // 123\n```\n\n[npm-url]: https://npmjs.org/package/deprecated\n[npm-image]: https://badge.fury.io/js/deprecated.png\n\n[travis-url]: https://travis-ci.org/wearefractal/deprecated\n[travis-image]: https://travis-ci.org/wearefractal/deprecated.png?branch=master\n\n[coveralls-url]: https://coveralls.io/r/wearefractal/deprecated\n[coveralls-image]: https://coveralls.io/repos/wearefractal/deprecated/badge.png\n\n[depstat-url]: https://david-dm.org/wearefractal/deprecated\n[depstat-image]: https://david-dm.org/wearefractal/deprecated.png\n\n[david-url]: https://david-dm.org/wearefractal/deprecated\n[david-image]: https://david-dm.org/wearefractal/deprecated.png?theme=shields.io","_attachments":{},"homepage":"http://github.com/wearefractal/deprecated","bugs":{"url":"https://github.com/wearefractal/deprecated/issues"}}