Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ctrl/tinycolor

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ctrl/tinycolor - npm Package Compare versions

Comparing version 2.5.2 to 2.5.3

33

package.json
{
"name": "@ctrl/tinycolor",
"version": "2.5.2",
"version": "2.5.3",
"description": "Fast, small color manipulation and conversion for JavaScript",

@@ -42,26 +42,25 @@ "author": "Scott Cooper <scttcper@gmail.com>",

"devDependencies": {
"@types/jest": "24.0.13",
"@types/node": "12.0.2",
"@typescript-eslint/eslint-plugin": "1.9.0",
"@typescript-eslint/parser": "1.9.0",
"del-cli": "1.1.0",
"eslint": "5.16.0",
"eslint-config-prettier": "4.3.0",
"@types/jest": "24.0.15",
"@types/node": "12.6.6",
"@typescript-eslint/eslint-plugin": "1.12.0",
"@typescript-eslint/parser": "1.12.0",
"del-cli": "2.0.0",
"eslint": "6.0.1",
"eslint-config-xo-space": "0.21.0",
"eslint-config-xo-typescript": "0.12.0",
"eslint-plugin-import": "2.17.3",
"eslint-config-xo-typescript": "0.15.0",
"eslint-plugin-import": "2.18.0",
"jest": "24.8.0",
"jest-junit": "6.4.0",
"rollup": "1.12.4",
"rollup-plugin-livereload": "1.0.0",
"rollup": "1.17.0",
"rollup-plugin-livereload": "1.0.1",
"rollup-plugin-serve": "1.0.1",
"rollup-plugin-sourcemaps": "0.4.2",
"rollup-plugin-terser": "5.0.0",
"rollup-plugin-typescript2": "0.21.1",
"rollup-plugin-terser": "5.1.1",
"rollup-plugin-typescript2": "0.22.0",
"rollup-plugin-uglify": "6.0.2",
"semantic-release": "15.13.12",
"semantic-release": "15.13.18",
"ts-jest": "24.0.2",
"ts-node": "8.2.0",
"ts-node": "8.3.0",
"typedoc": "0.15.0-0",
"typescript": "3.4.5"
"typescript": "3.5.3"
},

@@ -68,0 +67,0 @@ "release": {

@@ -84,6 +84,2 @@ # tinycolor [![npm](https://img.shields.io/npm/v/%40ctrl%2Ftinycolor.svg?maxAge=3600)](https://www.npmjs.com/package/%40ctrl%2Ftinycolor) [![CircleCI](https://circleci.com/gh/TypeCtrl/tinycolor.svg?style=svg)](https://circleci.com/gh/TypeCtrl/tinycolor) [![coverage status](https://codecov.io/gh/typectrl/tinycolor/branch/master/graph/badge.svg)](https://codecov.io/gh/typectrl/tinycolor)

new TinyColor({ h: 0, s: 1, l: 0.5 });
import { fromRatio } from '@ctrl/tinycolor';
fromRatio({ h: 1, s: 0, l: 0 });
fromRatio({ h: 0.5, s: 0.5, l: 0.5 });
```

@@ -99,6 +95,2 @@

new TinyColor({ h: 0, s: 100, v: 100 });
import { fromRatio } from '@ctrl/tinycolor';
fromRatio({ h: 1, s: 0, v: 0 });
fromRatio({ h: 0.5, s: 0.5, v: 0.5 });
```

@@ -554,7 +546,7 @@

`hue` – Controls the hue of the generated color. You can pass a string representing a color name: `red`, `orange`, `yellow`, `green`, `blue`, `purple`, `pink` and `monochrome` are currently supported. If you pass a hexidecimal color string such as #00FFFF, its hue value will be extracted and use that to generate colors.
`luminosity` – Controls the luminosity of the generated color. You can specify a string containing bright, light or dark.
`count` – An integer which specifies the number of colors to generate.
`seed` - An integer or string which when passed will cause randomColor to return the same color each time.
`alpha` – A decimal between 0 and 1. Only relevant when using a format with an alpha channel (rgba and hsla). Defaults to a random value.
* `hue` – Controls the hue of the generated color. You can pass a string representing a color name: `red`, `orange`, `yellow`, `green`, `blue`, `purple`, `pink` and `monochrome` are currently supported. If you pass a hexidecimal color string such as #00FFFF, its hue value will be extracted and used to generate colors.
* `luminosity` – Controls the luminosity of the generated color. You can specify a string containing bright, light or dark.
* `count` – An integer which specifies the number of colors to generate.
* `seed` – An integer or string which when passed will cause randomColor to return the same color each time.
* `alpha` – A decimal between 0 and 1. Only relevant when using a format with an alpha channel (rgba and hsla). Defaults to a random value.

@@ -561,0 +553,0 @@ ```ts

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