Skip to content

Commit

Permalink
fix: fixed docs example, add github repo to the package
Browse files Browse the repository at this point in the history
  • Loading branch information
murolem committed Jan 28, 2024
1 parent 75fc3ce commit bfb9589
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
```
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "A simple logger utility.",
"type": "module",
"main": "dist/index.js",
"repository": "github:murolem/logger",
"files": [
"dist"
],
Expand Down

0 comments on commit bfb9589

Please sign in to comment.