Skip to content

Commit

Permalink
Avoid star import in example
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickjuchli committed Dec 16, 2023
1 parent 53cb3c0 commit 82b408b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ Node 10.0 or later is the only dependency.
The first example will connect to an FTP server using TLS (FTPS), get a directory listing, upload a file and download it as a copy. Note that the FTP protocol doesn't allow multiple requests running in parallel.

```js
const ftp = require("basic-ftp")
// ESM: import * as ftp from "basic-ftp"

const { Client } = require("basic-ftp")
// ESM: import { Client } from "basic-ftp"
s
example()

async function example() {
const client = new ftp.Client()
const client = new Client()
client.ftp.verbose = true
try {
await client.access({
Expand Down

0 comments on commit 82b408b

Please sign in to comment.