From 82b408bf3b0a72f327baa684d17d8beefe7d2322 Mon Sep 17 00:00:00 2001 From: Patrick Juchli Date: Sat, 16 Dec 2023 13:36:38 +0100 Subject: [PATCH] Avoid star import in example --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3a4cdae..4f75a09 100644 --- a/README.md +++ b/README.md @@ -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({