npm i
npm start
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
npm run deploy
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