select-csv 1.1.23 → 1.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -66,7 +66,7 @@ parse = parseText(
|
|
|
66
66
|
const result = parse.get(); //Return all rows
|
|
67
67
|
/*
|
|
68
68
|
{
|
|
69
|
-
|
|
69
|
+
Time: "0 ms",
|
|
70
70
|
header:["Index","User Id","First Name","Last Name","Sex"],
|
|
71
71
|
rows:[
|
|
72
72
|
["1","5f10e9D33fC5f2b","Sara","Mcguire","Female"],
|
|
@@ -97,7 +97,7 @@ result = parse.chunk(c)
|
|
|
97
97
|
result = parse.chunk(2) //Return row 0 and 1
|
|
98
98
|
/*
|
|
99
99
|
{
|
|
100
|
-
|
|
100
|
+
Time: "0 ms",
|
|
101
101
|
"Header": [ "Index", "User Id", "First Name", "Last Name", "Sex" ],
|
|
102
102
|
"Rows": [
|
|
103
103
|
[ "1", "5f10e9D33fC5f2b", "Sara", "Mcguire", "Female" ],
|
|
@@ -110,7 +110,7 @@ result = parse.chunk(2) //Return row 0 and 1
|
|
|
110
110
|
result = parse.chunk(3) //Return row 2,3 and 4 (Get rows from last offset saved)
|
|
111
111
|
/*
|
|
112
112
|
{
|
|
113
|
-
|
|
113
|
+
Time: "0 ms",
|
|
114
114
|
"Header": [ "Index", "User Id", "First Name", "Last Name", "Sex" ],
|
|
115
115
|
"Rows": [
|
|
116
116
|
[ "3", "DcEFDB2D2e62bF9", "Gwendolyn", "Sheppard", "Male" ],
|
|
@@ -124,7 +124,7 @@ result = parse.chunk(3) //Return row 2,3 and 4 (Get rows from last offset saved)
|
|
|
124
124
|
result = parse.chunk(1) //Return row 5 (Get rows from last offset saved)
|
|
125
125
|
/*
|
|
126
126
|
{
|
|
127
|
-
|
|
127
|
+
Time: "0 ms",
|
|
128
128
|
"Header": [ "Index", "User Id", "First Name", "Last Name", "Sex" ],
|
|
129
129
|
"Rows": [
|
|
130
130
|
[ "6", "BdDb6C8Af309202", "Calvin", "Ramsey", "Female" ]
|
|
@@ -151,7 +151,7 @@ result = parse.rowOffset(from,to)
|
|
|
151
151
|
result = parse.rowOffset(6) //Returns all rows from the sixth row to the last row
|
|
152
152
|
/*
|
|
153
153
|
{
|
|
154
|
-
|
|
154
|
+
Time: "0 ms",
|
|
155
155
|
"Header": [ "Index", "User Id", "First Name", "Last Name", "Sex" ],
|
|
156
156
|
"Rows": [
|
|
157
157
|
[ "7", "FCdfFf08196f633", "Collin", "Allison", "Male" ],
|
|
@@ -166,7 +166,7 @@ result = parse.rowOffset(6) //Returns all rows from the sixth row to the last ro
|
|
|
166
166
|
result = parse.rowOffset(5,8) //Returns all rows from 5th to 8th row
|
|
167
167
|
/*
|
|
168
168
|
{
|
|
169
|
-
|
|
169
|
+
Time: "1 ms",
|
|
170
170
|
"Header": [ "Index", "User Id", "First Name", "Last Name", "Sex" ],
|
|
171
171
|
"Rows": [
|
|
172
172
|
[ "6", "BdDb6C8Af309202", "Calvin", "Ramsey", "Female" ],
|
|
@@ -196,7 +196,7 @@ result = parse.setRowOffset(5)
|
|
|
196
196
|
result = parse.chunk(1) // Get rows from last offset saved
|
|
197
197
|
/*
|
|
198
198
|
{
|
|
199
|
-
|
|
199
|
+
Time: "0 ms",
|
|
200
200
|
"Header": [ "Index", "User Id", "First Name", "Last Name", "Sex" ],
|
|
201
201
|
"Rows": [
|
|
202
202
|
[ "6", "BdDb6C8Af309202", "Calvin", "Ramsey", "Female" ]
|
|
@@ -213,7 +213,7 @@ false
|
|
|
213
213
|
result = parse.chunk(1) // Get rows from last offset saved
|
|
214
214
|
/*
|
|
215
215
|
{
|
|
216
|
-
|
|
216
|
+
Time: "0 ms",
|
|
217
217
|
"Header": [ "Index", "User Id", "First Name", "Last Name", "Sex" ],
|
|
218
218
|
"Rows": [
|
|
219
219
|
[ "7", "FCdfFf08196f633", "Collin", "Allison", "Male" ]
|
|
@@ -268,7 +268,7 @@ option = {
|
|
|
268
268
|
result = parse.rowOffset(2)
|
|
269
269
|
/*
|
|
270
270
|
{
|
|
271
|
-
|
|
271
|
+
Time: "0 ms",
|
|
272
272
|
"Header": false,
|
|
273
273
|
"Rows": [
|
|
274
274
|
[ "2", "751cD1cbF77e005", "Alisha", "Hebert", "Male" ]
|
|
@@ -284,7 +284,7 @@ option = {
|
|
|
284
284
|
// delimiter: (String: get rows containing columns, false: get lines without columns)
|
|
285
285
|
/*
|
|
286
286
|
{
|
|
287
|
-
|
|
287
|
+
Time: "0 ms",
|
|
288
288
|
"Header": false,
|
|
289
289
|
"Rows": [
|
|
290
290
|
[ "2,751cD1cbF77e005,Alisha,Hebert,Male" ] // No columns, just string (all line)
|
package/package.json
CHANGED