html2raml

```shell npm install html2raml -g html2raml ./home.html -o ./home.raml.coffee ```

npm install html2raml
4 downloads in the last month
npm install html2raml -g
html2raml ./home.html -o ./home.raml.coffee

Caveats

This code is so buggy that it will most likely destroy your computer. Seriously. It was built in under 30 minutes. LOTS of pending stuff. But its a start.

Strategy

  • Run HTML through Tidy
  • Load into JSDOM
  • Query using jQuery and print output
  • TODO: Compile output using coffee-script to see if it is valid
npm loves you