diff --git a/README.md b/README.md index 530efd8..1d53245 100644 --- a/README.md +++ b/README.md @@ -23,16 +23,12 @@ npm install @aliser/logger ```ts import Logger from "@aliser/logger"; +// 1. log using one of the methods const logger = new Logger(); logger.logInfo(msg); -// or - -const { logInfo, logError } = new Logger(); -logger.logInfo(msg); - -// or - +// 2. or destructure the methods you need +const logger = new Logger(); const { logInfo, logError } = logger; -logger.logInfo(msg); +logInfo(msg); ``` diff --git a/package.json b/package.json index 3babc49..243a975 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "description": "A simple logger utility.", "type": "module", "main": "dist/index.js", + "repository": "github:murolem/logger", "files": [ "dist" ],