Feature request: Dockerize
ohld opened this issue · 1 comments
Hi there and thanks for the library!
It would be very useful if there would be a way to use your tool in a microservice architecture. To make it, you'll need to create a docker image of your library and allow it to receive http requests and return the result JSON in the output.
So basically just the same as you already do, but allow to pass arguments into your JS functions and return its results through HTTP interface (like a webservice).
This will allow everyone to use your tool (not only JS developers). Thanks.
You can take a look at Mercury parser - they created a similar thing for they JS web parser.
JS:
https://github.com/postlight/mercury-parser
API:
https://github.com/postlight/mercury-parser-api
Dockerfile:
https://github.com/morejust/mercury-parser-docker