/jsdom-service

service for executing jquery on the server to parse html

Primary LanguageCoffeeScript

Not safe for production use 🐟

Build Status

Usage

Include html and code in request params. Your code will have access to $ (jquery) and should populate the result hash.

Example

GET http://localhost:5000/?html=<h1>wut</h1>&code=result['sup']=$('h1').text()

returns the following JSON:

{
  "error": null,
  "result": {
    "sup": "wut"
  }
}

TODO

  • Figure out how to sandbox nodejs eval if possible.