terminal-prettier 1.0.1 → 1.0.3
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.
- package/README.md +5 -4
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
# terminal-
|
|
1
|
+
# terminal-prettier
|
|
2
2
|
|
|
3
3
|
A small TypeScript logger for terminals: ISO timestamps, emoji level icons, and optional ANSI colors—aimed at command-line tools and local development.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install terminal-
|
|
8
|
+
npm install terminal-prettier
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import logger from 'terminal-
|
|
14
|
+
import logger from 'terminal-prettier';
|
|
15
15
|
|
|
16
|
-
logger.info('Application
|
|
16
|
+
logger.info('Application running');
|
|
17
17
|
logger.debug('Debug information', { key: 'value' });
|
|
18
18
|
logger.warn('Warning message');
|
|
19
19
|
logger.error('Error occurred', new Error('Something went wrong'));
|
|
@@ -38,6 +38,7 @@ logger.fatal('Fatal error');
|
|
|
38
38
|
- ISO-8601 timestamps on each line
|
|
39
39
|
- Written in TypeScript with bundled type declarations
|
|
40
40
|
- No runtime dependencies beyond Node
|
|
41
|
+
- Emphasize errors and issues
|
|
41
42
|
|
|
42
43
|
## License
|
|
43
44
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "terminal-prettier",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Pretty terminal logger for CLIs: ISO timestamps, level icons, and colorized output with zero runtime deps",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
"colorized",
|
|
23
23
|
"pretty",
|
|
24
24
|
"formatter",
|
|
25
|
-
"timestamp"
|
|
25
|
+
"timestamp",
|
|
26
|
+
"prettier"
|
|
26
27
|
],
|
|
27
28
|
"author": "snapbar",
|
|
28
29
|
"license": "MIT",
|