Socket
Socket
Sign inDemoInstall

simple-common-utils

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-common-utils - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

290

js/StaticUtils.js
export default class StaticUtils {
static colorNames = {
aliceblue: 0xf0f8ff00,
antiquewhite: 0xfaebd700,
aqua: 0x00ffff00,
aquamarine: 0x7fffd400,
azure: 0xf0ffff00,
beige: 0xf5f5dc00,
bisque: 0xffe4c400,
black: 0x00000000,
blanchedalmond: 0xffebcd00,
blue: 0x0000ff00,
blueviolet: 0x8a2be200,
brown: 0xa52a2a00,
burlywood: 0xdeb88700,
cadetblue: 0x5f9ea000,
chartreuse: 0x7fff0000,
chocolate: 0xd2691e00,
coral: 0xff7f5000,
cornflowerblue: 0x6495ed00,
cornsilk: 0xfff8dc00,
crimson: 0xdc143c00,
cyan: 0x00ffff00,
darkblue: 0x00008b00,
darkcyan: 0x008b8b00,
darkgoldenrod: 0xb8860b00,
darkgray: 0xa9a9a900,
darkgreen: 0x00640000,
darkgrey: 0xa9a9a900,
darkkhaki: 0xbdb76b00,
darkmagenta: 0x8b008b00,
darkolivegreen: 0x556b2f00,
darkorange: 0xff8c0000,
darkorchid: 0x9932cc00,
darkred: 0x8b000000,
darksalmon: 0xe9967a00,
darkseagreen: 0x8fbc8f00,
darkslateblue: 0x483d8b00,
darkslategrey: 0x2f4f4f00,
darkturquoise: 0x00ced100,
darkviolet: 0x9400d300,
deeppink: 0xff149300,
deepskyblue: 0x00bfff00,
dimgray: 0x69696900,
dimgrey: 0x69696900,
dodgerblue: 0x1e90ff00,
firebrick: 0xb2222200,
floralwhite: 0xfffaf000,
forestgreen: 0x228b2200,
fuchsia: 0xff00ff00,
gainsboro: 0xdcdcdc00,
ghostwhite: 0xf8f8ff00,
gold: 0xffd70000,
goldenrod: 0xdaa52000,
gray: 0x80808000,
green: 0x00800000,
greenyellow: 0xadff2f00,
grey: 0x80808000,
honeydew: 0xf0fff000,
hotpink: 0xff69b400,
indianred: 0xcd5c5c00,
indigo: 0x4b008200,
ivory: 0xfffff000,
khaki: 0xf0e68c00,
lavender: 0xe6e6fa00,
lavenderblush: 0xfff0f500,
lawngreen: 0x7cfc0000,
lemonchiffon: 0xfffacd00,
lightblue: 0xadd8e600,
lightcoral: 0xf0808000,
lightcyan: 0xe0ffff00,
lightgoldenrodyellow: 0xfafad200,
lightgray: 0xd3d3d300,
lightgreen: 0x90ee9000,
lightgrey: 0xd3d3d300,
lightpink: 0xffb6c100,
lightsalmon: 0xffa07a00,
lightseagreen: 0x20b2aa00,
lightskyblue: 0x87cefa00,
lightslategrey: 0x77889900,
lightsteelblue: 0xb0c4de00,
lightyellow: 0xffffe000,
lime: 0x00ff0000,
limegreen: 0x32cd3200,
linen: 0xfaf0e600,
magenta: 0xff00ff00,
maroon: 0x80000000,
mediumaquamarine: 0x66cdaa00,
mediumblue: 0x0000cd00,
mediumorchid: 0xba55d300,
mediumpurple: 0x9370db00,
mediumseagreen: 0x3cb37100,
mediumslateblue: 0x7b68ee00,
mediumspringgreen: 0x00fa9a00,
mediumturquoise: 0x48d1cc00,
mediumvioletred: 0xc7158500,
midnightblue: 0x19197000,
mintcream: 0xf5fffa00,
mistyrose: 0xffe4e100,
moccasin: 0xffe4b500,
navajowhite: 0xffdead00,
navy: 0x00008000,
oldlace: 0xfdf5e600,
olive: 0x80800000,
olivedrab: 0x6b8e2300,
orange: 0xffa50000,
orangered: 0xff450000,
orchid: 0xda70d600,
palegoldenrod: 0xeee8aa00,
palegreen: 0x98fb9800,
paleturquoise: 0xafeeee00,
palevioletred: 0xdb709300,
papayawhip: 0xffefd500,
peachpuff: 0xffdab900,
peru: 0xcd853f00,
pink: 0xffc0cb00,
plum: 0xdda0dd00,
powderblue: 0xb0e0e600,
purple: 0x80008000,
rebeccapurple: 0x66339900,
red: 0xff000000,
rosybrown: 0xbc8f8f00,
royalblue: 0x4169e100,
saddlebrown: 0x8b451300,
salmon: 0xfa807200,
sandybrown: 0xf4a46000,
seagreen: 0x2e8b5700,
seashell: 0xfff5ee00,
sienna: 0xa0522d00,
silver: 0xc0c0c000,
skyblue: 0x87ceeb00,
slateblue: 0x6a5acd00,
slategray: 0x70809000,
snow: 0xfffafa00,
springgreen: 0x00ff7f00,
steelblue: 0x4682b400,
tan: 0xd2b48c00,
teal: 0x00808000,
thistle: 0xd8bfd800,
tomato: 0xff634700,
turquoise: 0x40e0d000,
violet: 0xee82ee00,
wheat: 0xf5deb300,
white: 0xffffff00,
whitesmoke: 0xf5f5f500,
yellow: 0xffff0000,
yellowgreen: 0x9acd3200
aliceblue: 0xf0f8ffff,
antiquewhite: 0xfaebd7ff,
aqua: 0x00ffffff,
aquamarine: 0x7fffd4ff,
azure: 0xf0ffffff,
beige: 0xf5f5dcff,
bisque: 0xffe4c4ff,
black: 0x000000ff,
blanchedalmond: 0xffebcdff,
blue: 0x0000ffff,
blueviolet: 0x8a2be2ff,
brown: 0xa52a2aff,
burlywood: 0xdeb887ff,
cadetblue: 0x5f9ea0ff,
chartreuse: 0x7fff00ff,
chocolate: 0xd2691eff,
coral: 0xff7f50ff,
cornflowerblue: 0x6495edff,
cornsilk: 0xfff8dcff,
crimson: 0xdc143cff,
cyan: 0x00ffffff,
darkblue: 0x00008bff,
darkcyan: 0x008b8bff,
darkgoldenrod: 0xb8860bff,
darkgray: 0xa9a9a9ff,
darkgreen: 0x006400ff,
darkgrey: 0xa9a9a9ff,
darkkhaki: 0xbdb76bff,
darkmagenta: 0x8b008bff,
darkolivegreen: 0x556b2fff,
darkorange: 0xff8c00ff,
darkorchid: 0x9932ccff,
darkred: 0x8b0000ff,
darksalmon: 0xe9967aff,
darkseagreen: 0x8fbc8fff,
darkslateblue: 0x483d8bff,
darkslategrey: 0x2f4f4fff,
darkturquoise: 0x00ced1ff,
darkviolet: 0x9400d3ff,
deeppink: 0xff1493ff,
deepskyblue: 0x00bfffff,
dimgray: 0x696969ff,
dimgrey: 0x696969ff,
dodgerblue: 0x1e90ffff,
firebrick: 0xb22222ff,
floralwhite: 0xfffaf0ff,
forestgreen: 0x228b22ff,
fuchsia: 0xff00ffff,
gainsboro: 0xdcdcdcff,
ghostwhite: 0xf8f8ffff,
gold: 0xffd700ff,
goldenrod: 0xdaa520ff,
gray: 0x808080ff,
green: 0x008000ff,
greenyellow: 0xadff2fff,
grey: 0x808080ff,
honeydew: 0xf0fff0ff,
hotpink: 0xff69b4ff,
indianred: 0xcd5c5cff,
indigo: 0x4b0082ff,
ivory: 0xfffff0ff,
khaki: 0xf0e68cff,
lavender: 0xe6e6faff,
lavenderblush: 0xfff0f5ff,
lawngreen: 0x7cfc00ff,
lemonchiffon: 0xfffacdff,
lightblue: 0xadd8e6ff,
lightcoral: 0xf08080ff,
lightcyan: 0xe0ffffff,
lightgoldenrodyellow: 0xfafad2ff,
lightgray: 0xd3d3d3ff,
lightgreen: 0x90ee90ff,
lightgrey: 0xd3d3d3ff,
lightpink: 0xffb6c1ff,
lightsalmon: 0xffa07aff,
lightseagreen: 0x20b2aaff,
lightskyblue: 0x87cefaff,
lightslategrey: 0x778899ff,
lightsteelblue: 0xb0c4deff,
lightyellow: 0xffffe0ff,
lime: 0x00ff00ff,
limegreen: 0x32cd32ff,
linen: 0xfaf0e6ff,
magenta: 0xff00ffff,
maroon: 0x800000ff,
mediumaquamarine: 0x66cdaaff,
mediumblue: 0x0000cdff,
mediumorchid: 0xba55d3ff,
mediumpurple: 0x9370dbff,
mediumseagreen: 0x3cb371ff,
mediumslateblue: 0x7b68eeff,
mediumspringgreen: 0x00fa9aff,
mediumturquoise: 0x48d1ccff,
mediumvioletred: 0xc71585ff,
midnightblue: 0x191970ff,
mintcream: 0xf5fffaff,
mistyrose: 0xffe4e1ff,
moccasin: 0xffe4b5ff,
navajowhite: 0xffdeadff,
navy: 0x000080ff,
oldlace: 0xfdf5e6ff,
olive: 0x808000ff,
olivedrab: 0x6b8e23ff,
orange: 0xffa500ff,
orangered: 0xff4500ff,
orchid: 0xda70d6ff,
palegoldenrod: 0xeee8aaff,
palegreen: 0x98fb98ff,
paleturquoise: 0xafeeeeff,
palevioletred: 0xdb7093ff,
papayawhip: 0xffefd5ff,
peachpuff: 0xffdab9ff,
peru: 0xcd853fff,
pink: 0xffc0cbff,
plum: 0xdda0ddff,
powderblue: 0xb0e0e6ff,
purple: 0x800080ff,
rebeccapurple: 0x663399ff,
red: 0xff0000ff,
rosybrown: 0xbc8f8fff,
royalblue: 0x4169e1ff,
saddlebrown: 0x8b4513ff,
salmon: 0xfa8072ff,
sandybrown: 0xf4a460ff,
seagreen: 0x2e8b57ff,
seashell: 0xfff5eeff,
sienna: 0xa0522dff,
silver: 0xc0c0c0ff,
skyblue: 0x87ceebff,
slateblue: 0x6a5acdff,
slategray: 0x708090ff,
snow: 0xfffafaff,
springgreen: 0x00ff7fff,
steelblue: 0x4682b4ff,
tan: 0xd2b48cff,
teal: 0x008080ff,
thistle: 0xd8bfd8ff,
tomato: 0xff6347ff,
turquoise: 0x40e0d0ff,
violet: 0xee82eeff,
wheat: 0xf5deb3ff,
white: 0xffffffff,
whitesmoke: 0xf5f5f5ff,
yellow: 0xffff00ff,
yellowgreen: 0x9acd32ff
};

@@ -149,0 +149,0 @@

{
"name": "simple-common-utils",
"version": "1.2.0",
"version": "1.2.1",
"description": "A collection of utility classes.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -236,2 +236,3 @@ This is a collection of utility classes used for JS development.

-|-
v1.2.1|`StaticUtils.colorNames` had `00` as alpha. Changed to `FF`.
v1.2.0|The parameter `symmetric` is added to `StaticUtils.round()` in a backwards-compatible way.

@@ -238,0 +239,0 @@ v1.1.0|The methods `StaticUtils.deg2Rad()` and `StaticUtils.color()` are added.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc