Skip to content

Commit

Permalink
Document options parameter (#428)
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanIrache authored Jan 6, 2025
1 parent 07b47ac commit 028b9bf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,15 @@ var x = {

For more examples have a look at our [test suite](test.ts).

Options
------------------------------------------------------------------------------

A second options argument can be passed. The **lenient** option allows parsing to proceed even if some errors are found.

```js
let result = IGCParser.parse(fs.readFileSync('1G_77fv6m71.igc', 'utf8'), { lenient: true });
```


Similar work
------------------------------------------------------------------------------
Expand Down

0 comments on commit 028b9bf

Please sign in to comment.