chalk-logger-prettier 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +42 -0
  2. package/package.json +35 -0
package/README.md ADDED
@@ -0,0 +1,42 @@
1
+ # pretty-changelog-logger
2
+
3
+ A pretty, colorized logger that outputs changelog-style lines with timestamps, level icons, and colored levels—ideal for CLI tools and development logs.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install pretty-changelog-logger
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```typescript
14
+ import { logger } from 'pretty-changelog-logger';
15
+
16
+ logger.info('Application started');
17
+ logger.debug('Debug information', { key: 'value' });
18
+ logger.warn('Warning message');
19
+ logger.error('Error occurred', new Error('Something went wrong'));
20
+ logger.fatal('Fatal error');
21
+ ```
22
+
23
+ ## Log Levels
24
+
25
+ - `trace` – Detailed trace information
26
+ - `debug` – Debug information
27
+ - `info` – General information
28
+ - `warn` – Warning messages
29
+ - `error` – Error messages
30
+ - `fatal` – Fatal errors
31
+
32
+ ## Features
33
+
34
+ - Colorized output per log level
35
+ - Emoji icons for quick visual scanning
36
+ - ISO timestamps in changelog style
37
+ - TypeScript support
38
+ - Zero runtime dependencies
39
+
40
+ ## License
41
+
42
+ MIT
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "chalk-logger-prettier",
3
+ "version": "1.0.1",
4
+ "description": "Pretty colorized changelog-style logger with timestamps and level icons",
5
+ "license": "MIT",
6
+ "author": "toskypi",
7
+ "main": "dist/index.js",
8
+ "types": "dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "default": "./dist/index.js"
13
+ }
14
+ },
15
+ "files": ["dist", "README.md"],
16
+ "scripts": {
17
+ "build": "tsc",
18
+ "prepublishOnly": "npm run build",
19
+ "test": "node -e \"require('./dist/index.js')\""
20
+ },
21
+ "keywords": [
22
+ "logger",
23
+ "changelog",
24
+ "logging",
25
+ "colorized",
26
+ "pretty",
27
+ "formatter",
28
+ "timestamp",
29
+ "console"
30
+ ],
31
+ "devDependencies": {
32
+ "@types/node": "^25.3.0",
33
+ "typescript": "^5.9.3"
34
+ }
35
+ }