c# - How to get data in JSON Format in a loop from Node.js? -


i need data node.js .net. found package https://github.com/tjanczuk/edge helpful, still unable data.

i have following code in node.js retrieves npm packages information in json format 1 one , saves in text file.

const changesstream = require('changes-stream'); const request = require('request'); const normalize = require('normalize-registry-metadata'); var fs = require('fs');  const db = 'https://replicate.npmjs.com';  var changes = new changesstream({     db: db,     include_docs: true });  request.get(db, function (err, req, body) {     var end_sequence = json.parse(body).update_seq;     changes.on('data', function (change) {         if (change.seq >= end_sequence) {             process.exit(0);         }         if (change.doc.name) {             console.log(normalize(change.doc));             fs.appendfile('server.txt', json.stringify(change.doc), function (err) {                 if (err) return console.log(err);             });         }     }); }); 

now want data returned .net (c#) 1 one instead of writing in text file.


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -