JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 53
  • Score
    100M100P100Q57565F
  • License MIT

A npm package to add some styling to terminal output

Package Exports

  • terminal-styling
  • terminal-styling/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (terminal-styling) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

terminal-colors

A npm package to add some styling to terminal output

Does Not Work With JavaScript Currently supports typescript Working on a JavaScript Fix

Installation

npm install terminal-styling

Usage

import { console } from 'terminal-styling'

// Changes terminal output to red
console.err("This is my error message");

// Changes terminal output to yellow
console.warn("This is my warning message");

// Changes terminal output to green
console.info("This is my info message");

// Allows the user to use custom colors
console.customColor(<'Hex Code'>, <is_bold: true || false> <'This is my custom color message'> ['Background Hex']);