code: function splitLocalFile(file, N, callback) {
    const split = [];
    const size = fs.statSync(file).size;
    const maxBlockSize = Math.ceil(size / (N || 1));
    let start = 0;
  
    // var str = fs.readFileSync(file, {encoding: 'utf8'}).replace(/\n/g, '*');
    // console.log(str)
    while (start < size) {
      // console.log('Split n° %d = %s', split.length, str.substr(start, maxBlockSize + 1))
      split.push({index: split.length, chunk: [{path: file, opt: {start: start, end: start + maxBlockSize}}]});
      start += maxBlockSize + 1;
    }
  
    callback(split);
  }
docs: var Lines = require('../lib/lines.js'); 
  Compute N-Length logic split of given file