Closed Datamance closed 2 years ago
Hi,
You are right. There is a bug in the documentation. fx uses lossless-json for parsing integers (for supporting integers bigger than 2**53, for example, int64). For outputting it as number losses number should be converted to number: console.log(+x)
I rewrote the entire fx in golang. So I belove this issue is no longer needed.
Hi there,
for this command presented in the docs:
echo '[1,2,3]' | fx 'this.forEach(x => console.log(x))' 2>/dev/null | xargs echo
I end up getting this:
I'm using node 13.11 and fish shell, doubt it matters though. What's this about?