An elegant console logger.

Overview

kons

NPM version

An elegant console logger.

Features

  • Tiny (Minified + Gzipped ≈ 0.1kB). Beautiful. Easy to use.
  • Customizable.
  • TypeScript type declarations included.
  • NO_COLOR friendly.

Installation

# NPM
$ npm install kons -S

# Yarn
$ yarn add kons

# PNPM
$ pnpm add kons

Usage

import { error, info, log, success, warn } from "kons";

log("Hello World!");
info("This is kons!");
warn("Warning!");
error("Error!");
success("Success!");

Output:

Advanced Usage

import { createFormatter } from "kons";

// Parameter 1: Log type
// Parameter 2: Log background color, see [picocolors](https://npmjs.com/package/picocolors) for available colors
// Parameter 3?: Log options, see types for more information
const myLog = createFormatter("myLog", "cyan", { target: console.info, textColor: "green" });

License

MIT License © 2022 Ray

You might also like...

Console log to terminal

Termlog Console log to terminal What it does termlog send the browser console log to your terminal It also comes with a nodejs REPL so you can do some

Jan 21, 2022

NpxCard - Write 'npx hariom' in your console.

npx Card This is my NPX card for connecting with me in console or terminal. ❣️ Just Hit npx hariom Will see you in console in just a minute 👀 Importa

Jul 26, 2022

Console for mobile browsers

Console for mobile browsers

中文 Eruda Console for Mobile Browsers. Demo Browse it on your phone: https://eruda.liriliri.io/ In order to try it for different sites, execute the scr

Jan 1, 2023

print faceit elo into the console/chat via telnet

Print MM Ranks and FaceIT elo ingame This tool uses telnet to interact with the console in CS:GO Description Gets faceit elo via the official faceit a

Sep 20, 2022

A simple library to draw option menu or other popup inputs and layout on Node.js console.

A simple library to draw option menu or other popup inputs and layout on Node.js console.

console-gui-tools A simple library to draw option menu or other popup inputs and layout on Node.js console. console-gui-tools A simple Node.js library

Dec 24, 2022

Beautiful errors for Remix, both in browser and console

Beautiful errors for Remix, both in browser and console

Rekindled Beautiful errors for Remix, both in browser and console. This project is inspired by php's ignition. I am personally in love with the idea o

Nov 22, 2022

A tool to install ubuntu mainline kernels from the console.

Ubuntu Kernel Tool A tool to list, download, and install mainline kernels from the Ubuntu mainline repository. ULTIMATE DISCLAIMER: DO NOT USE THIS TO

Jan 21, 2022

Qovery Web Console 🌎

Qovery console Quick start yarn // start project yarn start // start storybook yarn run storybook Generate an application Run nx g @nrwl/react:app my-

Dec 27, 2022

The best desktop console calculator yet!

The best desktop console calculator yet!

TBCalc - Console Calculator The best desktop console calculator yet! 🌐 Try TBCalc Online: https://tbcalc.tcb13.com 💻 TBCalc Windows App: https://tbc

Sep 7, 2022
Comments
  • Configure Renovate

    Configure Renovate

    Mend Renovate

    Welcome to Renovate! This is an onboarding PR to help you understand and configure settings before regular Pull Requests begin.

    🚦 To activate Renovate, merge this Pull Request. To disable Renovate, simply close this Pull Request unmerged.


    Detected Package Files

    • .github/workflows/ci.yml (github-actions)
    • .github/workflows/release.yml (github-actions)
    • package.json (npm)

    Configuration

    🔡 Renovate has detected a custom config for this PR. Feel free to ask for help if you have any doubts and would like it reviewed.

    Important: Now that this branch is edited, Renovate can't rebase it from the base branch any more. If you make changes to the base branch that could impact this onboarding PR, please merge them manually.

    What to Expect

    With your current configuration, Renovate will create 9 Pull Requests:

    chore(deps): update dependency puild to v1.3.2
    • Schedule: ["at any time"]
    • Branch name: renovate/puild-1.x
    • Merge into: main
    • Upgrade puild to 1.3.2
    chore(deps): update pnpm/action-setup action to v2.2.4
    • Schedule: ["at any time"]
    • Branch name: renovate/pnpm-action-setup-2.x
    • Merge into: main
    • Upgrade pnpm/action-setup to v2.2.4
    chore(deps): update dependency @​antfu/ni to ^0.18.0
    • Schedule: ["at any time"]
    • Branch name: renovate/antfu-ni-0.x
    • Merge into: main
    • Upgrade @antfu/ni to ^0.18.0
    chore(deps): update dependency @so1ve/eslint-config to ^0.37.0
    • Schedule: ["at any time"]
    • Branch name: renovate/so1ve-eslint-config-0.x
    • Merge into: main
    • Upgrade @so1ve/eslint-config to ^0.37.0
    chore(deps): update dependency vitest to ^0.26.0
    • Schedule: ["at any time"]
    • Branch name: renovate/vitest-monorepo
    • Merge into: main
    • Upgrade vitest to ^0.26.0
    chore(deps): update pnpm to v7.21.0
    • Schedule: ["at any time"]
    • Branch name: renovate/pnpm-7.x
    • Merge into: main
    • Upgrade pnpm to 7.21.0
    chore(deps): update actions/checkout action to v3
    • Schedule: ["at any time"]
    • Branch name: renovate/actions-checkout-3.x
    • Merge into: main
    • Upgrade actions/checkout to v3
    chore(deps): update actions/setup-node action to v3
    • Schedule: ["at any time"]
    • Branch name: renovate/actions-setup-node-3.x
    • Merge into: main
    • Upgrade actions/setup-node to v3
    chore(deps): update dependency vite to v4
    • Schedule: ["at any time"]
    • Branch name: renovate/vite-4.x
    • Merge into: main
    • Upgrade vite to ^4.0.0

    🚸 Branch creation will be limited to maximum 2 per hour, so it doesn't swamp any CI resources or overwhelm the project. See docs for prhourlylimit for details.


    ❓ Got questions? Check out Renovate's Docs, particularly the Getting Started section. If you need any further assistance then you can also request help here.


    This PR has been generated by Mend Renovate. View repository job log here.

    opened by renovate[bot] 0
Owner
ʀᴀʏ
AAwwwwwwwwwwww
ʀᴀʏ
Another logger in JS. This one offers a console.log-like API and formatting, colored lines and timestamps (or not if desired), all that with 0 dependencies.

hellog Your new logger ! hellog is a general-purpose logging library. It offers a console.log-like API and formatting, extensible type-safety colored

Maxence Lecanu 4 Jan 5, 2022
Base provides advanced Promise Queue Manager, Custom Console Logger and other utilities.

Base Base provides frequently used functionality like cutome logger, response helper, Custom Promise and Instance composer. These are used in almost a

PLG Works 14 Jun 14, 2022
Context-carrying logger with conditional methods.

logger Provides a simple logging interface as well as a LogContext class which carries a context around. Installation npm install @rocicorp/logger Us

Rocicorp 9 May 20, 2022
The JSON logger you always wanted for Lambda.

MikroLog The JSON logger you always wanted for Lambda. MikroLog is like serverless: There is still a logger ("server"), but you get to think a lot les

Mikael Vesavuori 11 Nov 15, 2022
✨ Elegant portfolio template built on NextJS and Tailwind.

Obsidian ✨ Obsidian is a minimal and lightweight portfolio template built on NextJS and TailwindCSS. ✨ Setup Install the dependencies Edit content Cha

Brayden 33 Dec 21, 2022
The invoker based on event model provides an elegant way to call your methods in another container via promisify functions

The invoker based on event model provides an elegant way to call your methods in another container via promisify functions. (like child-processes, iframe, web worker etc).

尹挚 7 Dec 29, 2022
Elegant jest.expect typings for a more civilized age

typed-jest-expect Elegant jest.expect typings for a more civilized age Why? By default, the expect utility of jest is very broadly typed, which makes

Elie Rotenberg 4 Feb 25, 2022
Chat View let's you quickly and easily create elegant Chat UIs in your Markdown Files.

Obsidian Chat View Plugin Chat View let's you quickly and easily create elegant Chat UIs in your Markdown Files. Usage Every chat message must be pref

Adifyr 96 Dec 27, 2022
A Powerful and Elegant "alert" library for JavaScript that replaces that boring alert style of Javascript.

A Powerful , Elegant and fully customizable "alert" library using JavaScript that replaces that boring style of alert. Installation Place the below sc

Cosmogic 11 Aug 10, 2021
Pure JavaScript HTML5 Canvas Range Slider. No stylesheet needed. Simple, elegant and powerful. A quirky alternative to other sliders.

CanvasSlider CanvasSlider is a lightweight JavaScript range slider. Most of the range slider controls use Javascript and a stylesheet. This slider use

null 7 Aug 15, 2022