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

blurhash-cli

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blurhash-cli

Generate blurhash from CLI

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Blurhash CLI

:unicorn: Generate blurhash without leaving your terminal.

Test Downloads this Week Bundle Size Version

Blurhash from URL

:package: Requirements

  • Node.js 16X LTS or Higher 📦

:sparkles: Installation

  • Install the NPM Package with the below command:
#npm
npm install -g blurhash-cli

#yarn
yarn global add blurhash-cli

Please note that you can also use npx to run the package without installing it globally.

Example: npx blurhash-cli

:bulb: Usage

In your terminal, run the below command:

npx blurhash-cli https://i.imgur.com/NhfEdg2.png

Modify the Size (Size is optional, it defaults to 32):

The size flag controls the quality of the generated blurhash. A higher size value results in better quality but longer generation time.

npx blurhash-cli https://i.imgur.com/NhfEdg2.png --size=64

:ballot_box_with_check: Output

✔ 🥳 Blurhash Generated
› Hash: UnR.*,kW.TnPt7WBocozpJV@nMkWadofWCV@
› Width: 600
› Height: 600

:rocket: Example with Local Image

npx blurhash-cli ./image.png --local

:six_pointed_star: Credits

  • This CLI uses the blurhash-from-url library to generate the blurhash for the given URL.
:green_heart: Message

I hope you find this useful. If you have any questions, please create an issue.

Keywords

FAQs

Package last updated on 14 Sep 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