YahooArchive/express-state

Use outside express

phated opened this issue · 11 comments

I think there is use outside of express for this module. Have you considered exporting a method that doesn't rely on this binding inside the expose method?

definitely, even the serialization can be used today without using the express parts. any suggestion will be welcome. /cc @ericf

I was looking into that. There's enough of a dance to get it working that I think a standalone function would be helpful. I will see what I can come up with.

@phated I will work on refactoring this into two packages, moving what's in lib/ into its own package. I was already planning on a refactor to work with CSP and SPDY.

👍 @ericf When do you plan to do the refactor? I would like to use the separated serialise module in a Koa example.

@hekike I just extracted the serialize module and published it to npm as serialize-javascript.

@ericf great, thanks!

Thanks!

@phated I still haven't pulled out the lib/exposed.js module…

Sorry, reopening.

@ericf I could definitely use this functionality outside of Express as well. Thanks for doing this, much appreciated!

Code was ported to https://github.com/yahoo/serialize-javascript many years ago