arethetypeswrong / arethetypeswrong.github.io

Tool for analyzing TypeScript types of npm packages
https://arethetypeswrong.github.io
MIT License
1.12k stars 38 forks source link

Can't pipe json output to jq #184

Open Tobbe opened 1 month ago

Tobbe commented 1 month ago

npx @arethetypeswrong/cli -P -f json | jq doesn't work I get jq: parse error: Unfinished string at EOF at line 1, column 98304

image

Redirecting the output to a file, and then reading that file with jq does work however.

image

I think I see something similar when I try to tee the output: image image

As you can see the terminal output ends unexpectedly. (But the file I teed to (attw.json) has the complete output and can be parsed by jq)

So it seems something weird happens with the output when it's piped to another command