New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

colorslog-js

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

colorslog-js

colors-log is a simple library for console.log colors.

latest
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

colors-log

colors-log is a simple library for console.log colors.

Installation

npm install colorslog-js

Usage

With JS:

import useLogger from 'colorslog-js';

// in root files
useLogger();

// in components
console.print('hello world');
console.print('hello world', {}, 'success');
console.print('hello world', {
  scheme: {
    backgroundColor: '#fdf1f0',
    color: '#ef361a',
  }
});

With Vue.js:

// main.ts
import {printPlugin} from 'colorslog-js';

Vue.use(printPlugin);

const instance = getCurrentInstance();
const $print = instance?.appContext.config.globalProperties.$print

// or
console.pint('hello world');

// Note: `$print` is a global property.

Features under development...

(Not for use in production line environments)

Keywords

console

FAQs

Package last updated on 25 May 2022

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