Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jsenv/log

Package Overview
Dependencies
Maintainers
2
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsenv/log - npm Package Compare versions

Comparing version 3.3.3 to 3.3.4

4

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc