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

Using budo as middleware #158

Open
kolya-ay opened this issue Jun 13, 2016 · 3 comments
Open

Using budo as middleware #158

kolya-ay opened this issue Jun 13, 2016 · 3 comments

Comments

@kolya-ay
Copy link

I'm looking for a way to attach budō to existing express app (in dev mode). It would be cool if it could be used programmatically as middleware instead of writing custom code that way. Quick look at the source convinced me that it is not something impossible as budō acts allready as middleware composer (correct me if I'm wrong).

The api could be budo.middleware(options) or budo(options).middleware() with budo(options).listen(port) to match express style. This is probably related to #122 and #91

@mightyiam
Copy link

That seems like outside the scope of budo. There's browserify-middleware for that, IIRC.

@mattdesl
Copy link
Owner

I think it might be worth pulling the budo core into its own module. In other projects I've needed something like that. 😊 Just a matter of finding time.

@spacejack
Copy link
Contributor

Just bumping this issue to say I'd also love to see this feature. Though I'm accustomed to Express I've been looking at using Koa as well.

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

4 participants