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

with-alpha-hex

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

with-alpha-hex - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "with-alpha-hex",
"version": "1.0.1",
"version": "1.0.2",
"description": "A tiny TypeScript/JavaScript library which helps change/add alpha(opacity) of a css hexadecimal color.",

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

@@ -19,5 +19,16 @@ # with-alpha-hex

`npm i with-alpha-hex` or `yarn add with-alpha-hex`
## Usage
```ts
import { withAlphaHex } from 'with-alpha-hex'
const textColor = '#000'
const weakTextColor = withAlphaHex(textColor, 0.4)
console.log(weakTextColor) // #00000066
```
## Styled-JSX Example

@@ -24,0 +35,0 @@ ```tsx

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