3.2.4 • Published 3 years ago

ping-colorizer v3.2.4

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Make your ping into a colorful stirng!

Usage

import Color from 'ping-colorizer';

let Colors = {
    low: "#00bb00", // Default
    mid: "#ffff00", // Default
    high: "#00ff00" // Default
};

const Colorizer = new Color({ colors: Colors });
Colorizer.setPing(this.ping);

console.log('Ping: ' + Colorizer.ping, Colorizer.getColor<string>('rgb'));

Methods

**.setPing(value: number)** - Sets the default ping.

**.getColor(type: "hex" | "rgb")** - Obtain the color string.

**.setColor(type: "high" | "mid" | "low", value: string)** - Replace the color.

3.2.2

3 years ago

3.2.1

3 years ago

3.2.0

3 years ago

3.2.4

3 years ago

3.2.3

3 years ago

3.1.6

4 years ago

3.1.5

4 years ago

3.1.4

4 years ago

3.1.3

4 years ago

3.1.2

4 years ago

3.1.1

4 years ago

3.1.0

4 years ago

3.0.0

4 years ago

2.0.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago