Skip to content

Commit

Permalink
Doc only: remove unneeded import (#832)
Browse files Browse the repository at this point in the history
Advantage of using parseFile() is that 'import * as fs from 'fs';' can be omitted.
  • Loading branch information
SumitBando authored Dec 27, 2023
1 parent dbfac97 commit a9cfa78
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions documentation/docs/parsing/methods.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ Parses a file from the specified path and returns the `CsvParserStream`.
<TabItem value="ts">

```ts
import * as fs from 'fs';
import { parseFile } from 'fast-csv';

parseFile('my.csv')
Expand All @@ -121,7 +120,6 @@ parseFile('my.csv')
<TabItem value="js">

```js
const fs = require('fs');
const csv = require('@fast-csv/parse');

csv.parseFile('my.csv')
Expand Down

0 comments on commit a9cfa78

Please sign in to comment.