🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

cute-log-symbols

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cute-log-symbols

Cute log symbols.

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

node-cute-log-symbols

đź’ś Cute log symbols.

Installation

$ npm install cute-log-symbols

Usage

Importing

// javascript
const { createCuteLogSymbols } = require("cute-log-symbols");

// typescript
import { createCuteLogSymbols } from "cute-log-symbols";

Colored symbols

You will need to install some terminal color library for this. Picocolors is recommended.

import picocolors from "picocolors";
import { createCuteLogSymbols } from "cute-log-symbols";

const logSymbols = createCuteLogSymbols({
    style: {
        info: picocolors.blue,
        warning: picocolors.yellow,
        success: picocolors.green,
        error: picocolors.red,
    },
});

console.log(logSymbols.info, "Information");
console.log(logSymbols.warning, "Warning");
console.log(logSymbols.success, "Success");
console.log(logSymbols.error, "Error");

Uncolored symbols

import { createCuteLogSymbols } from "cute-log-symbols";

const logSymbols = createCuteLogSymbols();

console.log(logSymbols.info, "Information");
console.log(logSymbols.warning, "Warning");
console.log(logSymbols.success, "Success");
console.log(logSymbols.error, "Error");

License

MIT

FAQs

Package last updated on 24 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts