JSPM

colorink

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

Show color swatches and gradients in your terminal from hex codes

Package Exports

    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 (colorink) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    colorink

    A tiny CLI that displays color swatches and gradients right in your terminal.

    Install

    npm install -g colorink

    Or run directly with npx:

    npx colorink ff5733

    Usage

    # Show a color swatch
    colorink ff5733
    
    # Show a gradient between two colors
    colorink ff5733 3498db

    Swatch mode

    Displays a block of color with its hex and RGB values:

      ██████████████
      #FF5733
      rgb(255,87,51)
      ██████████████

    Gradient mode

    Renders a smooth gradient across your terminal width:

      #FF5733 ████████████████████████████████████████ #3498DB

    Requirements

    • A terminal that supports 24-bit truecolor (most modern terminals do)

    License

    MIT