From e46c5a0805314d19c724029d32a758ff0c10b7b4 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Fri, 5 Aug 2022 10:29:12 +0100 Subject: [PATCH] docs(readme): replace use of deprecated variadic `listen()` (#258) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 66b9183e..3d256979 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ app.register(autoload, { dir: path.join(__dirname, 'plugins') }) -app.listen(3000) +app.listen({ port: 3000 }) ``` or with ESM syntax: @@ -46,7 +46,7 @@ app.register(autoLoad, { dir: join(__dirname, 'plugins') }) -app.listen(3000) +app.listen({ port: 3000 }) ``` Folder structure: