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

[apply] super / extend / around #23

Open
ahdinosaur opened this issue Feb 23, 2017 · 3 comments
Open

[apply] super / extend / around #23

ahdinosaur opened this issue Feb 23, 2017 · 3 comments

Comments

@ahdinosaur
Copy link
Member

when you want to extend the functionality of an existing module, using the existing module in your own module.

exports.gives = 'say'
exports.needs = { say: 'super' }
exports.create = (api) => (text) => {
  return api.say(text.toUpperCase())
}

because you might want to 'decorate' an existing module that doesn't already have a reduce chain set up.

/cc @mmckegg @mixmix

@ahdinosaur
Copy link
Member Author

@mmckegg says this is "do what first would do, before this function is added".

@dominictarr
Copy link
Collaborator

can you describe a specific usecase where you need this (that is not just logging)?

@dominictarr
Copy link
Collaborator

I think this issue may be related to: #16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants