dougwilson/nodejs-depd

Convenience function wrapper

Closed this issue · 0 comments

Add a convenience method to created a wrapped function that just deprecates all calls to the function (needs to preserve function arity). Possible interface:

var deprecate = requrie('depd')('my-cool-module')

exports.oldfunction = deprecate.function(oldfunction, 'oldfunction')

function oldfunction() {}