# colorslog-js

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

Latest version **0.0.1** (published 2022-05-25) · 0 weekly downloads

## Install

```sh
npm install colorslog-js
pnpm add colorslog-js
yarn add colorslog-js
bun add colorslog-js
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2022-05-25 |
| First published | 2022-05-25 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | deilzy |
| Keywords | console, logger-color, vue3 |

## Links

- npm: https://www.npmjs.com/package/colorslog-js
- npm.io page: https://npm.io/package/colorslog-js

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 0.0.1 (latest) — 2022-05-25

## README

# colors-log

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

## Installation

```sh
npm install colorslog-js
```

## Usage

With JS:

```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:

```typescript
// 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)

---
_Source: https://npm.io/package/colorslog-js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
