@jsenv/log
Advanced tools
Comparing version 3.3.3 to 3.3.4
{ | ||
"name": "@jsenv/log", | ||
"version": "3.3.3", | ||
"version": "3.3.4", | ||
"description": "Nice and dynamic logs in the terminal", | ||
@@ -36,3 +36,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"ansi-escapes": "6.0.0", | ||
"ansi-escapes": "6.1.0", | ||
"is-unicode-supported": "1.3.0", | ||
@@ -39,0 +39,0 @@ "string-width": "5.1.2", |
# Log [![npm package](https://img.shields.io/npm/v/@jsenv/log.svg?logo=npm&label=package)](https://www.npmjs.com/package/@jsenv/log) | ||
Helps to write colorful, dynamic logs while executing code in Node.js | ||
This packages is used by jsenv to create beautiful logs in the console. It is available as a standalone package to be used in other contexts. | ||
This package helps to: | ||
- add symbols via unicode | ||
- make dynamic logs | ||
- add color to logs | ||
# Task log example | ||
(Click image to play the gif) | ||
![img](./docs/demo_task.gif) | ||
Code used to produce these logs: | ||
```js | ||
import { createTaskLog } from "@jsenv/log" | ||
const task = createTaskLog("Doing something") | ||
setTimeout(() => { | ||
task.done() | ||
}, 1_000) | ||
``` | ||
# Unicode example | ||
![img](./docs/demo_unicode.png) | ||
Code used to produce these logs: | ||
```js | ||
import { UNICODE } from "@jsenv/log" | ||
console.log(`${UNICODE.COMMAND} cd dir/`) | ||
console.log(`${UNICODE.DEBUG} debug`) | ||
console.log(`${UNICODE.INFO} info`) | ||
console.log(`${UNICODE.WARNING} warning`) | ||
console.log(`${UNICODE.FAILURE} failure`) | ||
console.log(`${UNICODE.OK} ok`) | ||
``` | ||
# Installation | ||
@@ -6,0 +46,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22660
50
+ Addedansi-escapes@6.1.0(transitive)
- Removedansi-escapes@6.0.0(transitive)
Updatedansi-escapes@6.1.0