With the following command, I write data to file.txt.
node scripts/js/script.js /home/desktop/my-file.mp3 > file.txt
Content file.txt:
0
0
0
0
0
0.00003051850947599719
0
-0.00003051850947599719
0
0.00006103701895199438
0
What should be the way to write data as an array? Like this:
[0, 0, 0, 0, 0.00003051850947599719, 0, -0.00003051850947599719, 0, 0.00006103701895199438, 0]
Thanks in advance.
source
share