192
rated 0 times
[
194]
[
2]
/ answers: 1 / hits: 13723
/ 9 Years ago, fri, april 24, 2015, 12:00:00
I'm a node.js beginner. I'm trying to request a json file from a url (i.e 'http://www.example.com/sample_data.json').
My goal is to download/request the file only once when the server loads and then save it on the client side so I can manipulate/change it locally.
I tried
var file = request('http//exmaple.com/sample_data.json')
but it returns an import module error.
If anyone could give me a start that would be great!
thanks
More From » json