Parse HTTP transactions into a JSON AST and back, like
HTTP, or litHTTP (simplified HTTP), or curl, or curl-trace, or Apiary blueprint
into/from
or JSON AST
npm install lithttp
lithttp-to-ast
parses into the JSON ASTlithttp-from-ast
parses from the JSON AST
curl -s https://raw.githubusercontent.com/for-GET/literate-http/master/README.http.md | \
lithttp-to-ast
curl -s https://raw.githubusercontent.com/for-GET/literate-http/master/README.lithttp.md | \
lithttp-to-ast
curl -s https://raw.githubusercontent.com/for-GET/literate-http/master/README.curl.md | \
lithttp-to-ast curl
curl -s https://raw.githubusercontent.com/for-GET/literate-http/master/README.curl-trace.md | \
lithttp-to-ast curl-trace
curl -s https://raw.githubusercontent.com/for-GET/literate-http/master/README.apib.md | \
lithttp-to-ast apib
TBD (to be documented; see index)