New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/tinycolor2

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/tinycolor2

TypeScript definitions for tinycolor2

  • 1.4.6
  • ts4.5
  • ts4.6
  • ts4.7
  • ts4.8
  • ts4.9
  • ts5.0
  • ts5.1
  • ts5.2
  • ts5.3
  • ts5.4
  • ts5.5
  • ts5.6
  • ts5.7
  • ts5.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
593K
decreased by-49.38%
Maintainers
1
Weekly downloads
 
Created

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

FAQs

Package last updated on 07 Nov 2023

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc