Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convenience function wrapper #1

Closed
dougwilson opened this issue Jun 15, 2014 · 0 comments
Closed

Convenience function wrapper #1

dougwilson opened this issue Jun 15, 2014 · 0 comments

Comments

@dougwilson
Copy link
Owner

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() {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant