Skip to content

Commit 3eb3568

Browse files
Add .npmignore file, update README with before/after images, and include enhanced logger visuals
1 parent 2ef4189 commit 3eb3568

File tree

4 files changed

+48
-13
lines changed

4 files changed

+48
-13
lines changed

.npmignore

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# dependencies (bun install)
2+
node_modules
3+
4+
# output
5+
out
6+
dist
7+
*.tgz
8+
9+
# code coverage
10+
coverage
11+
*.lcov
12+
13+
# logs
14+
logs
15+
_.log
16+
report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
17+
18+
# dotenv environment variable files
19+
.env
20+
.env.development.local
21+
.env.test.local
22+
.env.production.local
23+
.env.local
24+
25+
# caches
26+
.eslintcache
27+
.cache
28+
*.tsbuildinfo
29+
30+
# IntelliJ based IDEs
31+
.idea
32+
33+
# Finder (MacOS) folder config
34+
.DS_Store
35+
36+
dist
37+
38+
images

README.md

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
A beautiful, enhanced logger for Drizzle ORM that transforms your SQL queries into visually appealing, color-coded output with syntax highlighting, icons, and detailed formatting.
44

5+
## 📸 Before vs After
6+
7+
### Before (Default Drizzle Logger)
8+
![Before - Default Drizzle Logger](./images/before.png)
9+
10+
### After (Enhanced Query Logger)
11+
![After - Enhanced Query Logger](./images/after.png)
12+
13+
*See the dramatic difference! The enhanced logger transforms plain SQL output into beautifully formatted, color-coded queries with syntax highlighting, icons, and structured parameter display.*
14+
515
## ✨ Features
616

717
- 🎨 **Beautiful formatting** with box-drawing characters and colors
@@ -67,19 +77,6 @@ const logger = new EnhancedQueryLogger({
6777
export const db = drizzle(client, { logger });
6878
```
6979

70-
### Example Output
71-
72-
When you run queries, you'll see beautifully formatted output like this:
73-
74-
```
75-
╭─ Database Query #1
76-
│ Time: 14:32:15
77-
│ 🔍 SELECT on users
78-
│ SQL: SELECT id, name, email FROM users WHERE age > 18
79-
├─ Parameters: $1: 18
80-
╰──────────────────────────────────────────────────────
81-
```
82-
8380
## 🎯 Query Types & Icons
8481

8582
The logger automatically detects and styles different query types:

images/after.png

331 KB
Loading

images/before.png

164 KB
Loading

0 commit comments

Comments
 (0)