Skip to content

Latest commit

 

History

History
54 lines (34 loc) · 1.24 KB

README.md

File metadata and controls

54 lines (34 loc) · 1.24 KB

Literate HTTP Build Status

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

Install

npm install lithttp

CLI Usage

  • lithttp-to-ast parses into the JSON AST
  • lithttp-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

JS Usage

TBD (to be documented; see index)

License

UNLICENSE