Skip to content

Latest commit

 

History

History
51 lines (40 loc) · 836 Bytes

README.md

File metadata and controls

51 lines (40 loc) · 836 Bytes

Local Development

npm i
npm start

Test local API

Use jq to work directly with .har files.

jq '{"har": .}' < example.har | curl -X POST \
  -H "Content-Type: application/json" \
  --data @- \
  localhost:3000 > scrub.har

Use without jq by converting .har files into .json files.

curl -X POST \
  -H "Content-Type: application/json" \
  -L --post301 \
  --data @example-har.json \
  localhost:3000 > scrub.json

Deploy to Edgio

npm run deploy

Use Hosted API

jq '{"har": .}' < example.har | curl -X POST \
  -H "Content-Type: application/json" \
  -L --post301 \
  --data @- \
  api.har.tools > scrub.har
curl -X POST \
  -H "Content-Type: application/json" \
  -L --post301 \
  --data @example-har.json \
  api.har.tools > scrub.json