Skip to content

aniketchopade/zip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

var fs = require('fs');
var fsrl = require ('readline');
var rl = fsrl.createInterface( 
    {
        input: fs.createReadStream(__dirname + "/data/zips.json")
    }
);
rl.zips = [];
rl.zipIndx = [];
rl.processLine = function(data){
    rl.zips.push( JSON.parse( data) );
    rl.zipIndx.push (Number(JSON.parse( data)._id))
}
rl.on('line', rl.processLine);
module.exports = rl;


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published