Socket
Socket
Sign inDemoInstall

@types/tinycolor2

Package Overview
Dependencies
0
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/tinycolor2


Version published
Weekly downloads
773K
decreased by-10.53%
Maintainers
1
Install size
24.3 kB
Created
Weekly downloads
 

Package description

What is @types/tinycolor2?

@types/tinycolor2 provides TypeScript type definitions for the tinycolor2 library, which is a fast, small color manipulation and conversion library. It allows developers to work with colors in various formats, perform color conversions, and manipulate colors easily.

What are @types/tinycolor2's main functionalities?

Color Creation

Create a color object from a hex string.

const color = tinycolor('#f00');

Color Conversion

Convert a color to its RGB representation.

const rgb = tinycolor('#f00').toRgb();

Color Manipulation

Lighten a color by a specified amount.

const lighterColor = tinycolor('#f00').lighten(20);

Color Comparison

Check if two colors are equivalent.

const isEqual = tinycolor.equals('#f00', '#ff0000');

Other packages similar to @types/tinycolor2

Readme

Source

Installation

npm install --save @types/tinycolor2

Summary

This package contains type definitions for tinycolor (https://github.com/bgrins/TinyColor).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tinycolor2

Additional Details

  • Last updated: Wed, 01 Aug 2018 01:30:09 GMT
  • Dependencies: none
  • Global values: tinycolor

Credits

These definitions were written by Mordechai Zuber https://github.com/M-Zuber, Geert Jansen https://github.com/geertjansen, Niels van Hoorn https://github.com/nvh, Junyoung Clare Jang https://github.com/Ailrun.

FAQs

Last updated on 01 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc