I'm assuming your choice of type: "buffer" was due to the fact that it won't load all in memory at once?
It would be nice to be able to write the JSON without having to store the entire file in RAM as well. Because in multi-user applications that would end creating a scalability issue.
Hi ! Thank you for your feedback !
When I wrote that article, I needed a method to convert one file once in a while and I didn't think about scalability.
But you're right, this method can certainly be improved greatly !
I will definitly look into that 🤔
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I'm assuming your choice of type: "buffer" was due to the fact that it won't load all in memory at once?
It would be nice to be able to write the JSON without having to store the entire file in RAM as well. Because in multi-user applications that would end creating a scalability issue.
Hi ! Thank you for your feedback !
When I wrote that article, I needed a method to convert one file once in a while and I didn't think about scalability.
But you're right, this method can certainly be improved greatly !
I will definitly look into that 🤔