File tree 3 files changed +12
-7
lines changed
3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change
1
+ /CHANGELOG.md
2
+ /coverage
3
+ /dist
Original file line number Diff line number Diff line change @@ -73,13 +73,13 @@ const logger = getLogger('encoda')
73
73
``` javascript
74
74
// Handle the log messages in application code
75
75
addHandler ((data : LogData ) => {
76
- // Send off to log output function
77
- winstonLogger .log (LogLevel[data .level ], data .message );
78
-
79
- // or filter on tag
80
- if (data .tag === ' encoda' ) {
81
- // do something different
82
- }
76
+ // Send off to log output function
77
+ winstonLogger .log (LogLevel[data .level ], data .message )
78
+
79
+ // or filter on tag
80
+ if (data .tag === ' encoda' ) {
81
+ // do something different
82
+ }
83
83
})
84
84
```
85
85
Original file line number Diff line number Diff line change 8
8
" /dist"
9
9
],
10
10
"scripts" : {
11
+ "format" : " npx prettier --write './**/*.{md,ts}'" ,
12
+ "lint" : " eslint 'src/**/*.{ts,js}' --fix" ,
11
13
"test" : " jest" ,
12
14
"test:cover" : " jest --collectCoverage" ,
13
15
"build" : " tsc index.ts --outDir dist --declaration"
You can’t perform that action at this time.
0 commit comments