Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Commit

Permalink
docs: new from sample
Browse files Browse the repository at this point in the history
  • Loading branch information
wdavidw committed Jan 28, 2021
1 parent 50fc66d commit 77fa209
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions samples/option.from.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const parse = require('..')
const assert = require('assert')

parse(`
a,b|1,2|3,4
`.trim(), {
columns: true,
record_delimiter: '|',
from: 2
}, function(err, records){
assert.deepEqual(
records, [{
a: '3',
b: '4'
}]
)
})

0 comments on commit 77fa209

Please sign in to comment.