Skip to content
Advertisement

Convert response to JSON/String and Write to a File

I’m new on java and node, so after 2 days trying to do this… i wrote this question.

I’m using a git (https://github.com/gigobyte/HLTV) and trying to make files with the responses i get from this api, but all i got so far is to write the results in the console.

JavaScript

Is there any way to convert it directry and write a file with the string?

Advertisement

Answer

you have to do it in the then call

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement