Skip to content

Commit

Permalink
Added default export.
Browse files Browse the repository at this point in the history
  • Loading branch information
moonstar-x committed Jul 30, 2024
1 parent d334e07 commit 6eafc37
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@moonstar-x/logger",
"version": "1.0.0",
"version": "1.0.1",
"description": "A logger with some colors and timestamps depending on the logging level.",
"main": "build/index.js",
"types": "build/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as logger from '.';
import logger from '.';
import util from 'util';

const MOCKED_TIMESTAMP = '11:49:58 PM';
Expand Down
10 changes: 10 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,13 @@ export const debug = (...args: any[]): void => {
export const clear = (): void => {
console.clear();
};

export default {
log,
info,
error,
fatal,
warn,
debug,
clear
};

0 comments on commit 6eafc37

Please sign in to comment.