Skip to content

boyepanthera/line-by-line-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Line Reader

A promise based and zero dependency javascript package for reading contents of a file in a line by line fashion

const lineReader = require ('line-by-line-reader');

// Grab your file from its path where you have it
let filepath = "path/to/your/file";

// call lineReader function get with filepath as argument
lineReader(filepath)
  .then(fileContent => {
    console.log(fileContent);
    console.log(fileContent.lines);
    console.log(fieContent.length);
  })
  .catch(err => {
    console.log(err);
  });

About

A promise based Javascript package for reading contents of a file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published