Friday 12 January 2018

[Help] Not able to get JSON API response using module.export.

I am banging my head on the wall since yesterday. I am new to Nodejs. Recently I got involved in a project where I need to create a npm module. I understood async nature of network and file in nodeJS.In the lib, I fetched JSON response and make it available to the user through module.export . But instead of the JSON data, I am getting undefined.How can I solve this?Code Snippet: http://ift.tt/2Fu9gXj

Submitted January 12, 2018 at 10:29AM by avicoder

No comments:

Post a Comment