readfileline
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -90,3 +90,3 @@ "use strict"; | ||
lineNum++; | ||
lineCB.call(rfl,lineNum,lineData); | ||
lineCB.call(rfl,lineData,lineNum); | ||
}); | ||
@@ -93,0 +93,0 @@ rfl.on('error',function(err){ |
{ | ||
"name": "readfileline", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "read file line by line", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,7 +5,5 @@ # ReadFileLine | ||
[![Build Status](https://travis-ci.org/zenboss/readfileline.svg?branch=master)](https://travis-ci.org/zenboss/readfileline) | ||
[![Build Status](https://travis-ci.org/zenboss/readfileline.svg?branch=master)](https://travis-ci.org/zenboss/readfileline) [![Build status](https://ci.appveyor.com/api/projects/status/ptyb3ttjqvdfyui1?svg=true)](https://ci.appveyor.com/project/zenboss/readfileline) | ||
[![Build status](https://ci.appveyor.com/api/projects/status/ptyb3ttjqvdfyui1?svg=true)](https://ci.appveyor.com/project/zenboss/readfileline) | ||
# Install | ||
@@ -12,0 +10,0 @@ >$ npm install readfileline -g |
@@ -9,3 +9,3 @@ "use strict"; | ||
var fileContent = []; | ||
fl(__dirname+'/data.txt',function(lineNum,lineData){ | ||
fl(__dirname+'/data.txt',function(lineData,lineNum){ | ||
fileContent.push(lineData); | ||
@@ -21,2 +21,3 @@ },function(err,eventType,lineNum){ | ||
fl(__dirname+'/nofile.txt',function(lineNum,lineData){ | ||
@@ -23,0 +24,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18002
15