Skip to content

Simple CLI tool to encode images into BlurHashes, decode BlurHashes into images, and validate BlurHashes.

License

Notifications You must be signed in to change notification settings

samuel-ping/bh-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BH CLI (BlurHash Command-Line Interface)

This is a CLI to run BlurHash utility commands in your terminal. This includes encoding image files into a BlurHash string, decoding a BlurHash string into an image file, and validating BlurHash strings.

Installation

$ npm install -g bh-cli

Usage

Encoding an image file to a BlurHash

$ bh encode [options] <image_file>

Decoding a BlurHash string into an image file

$ bh decode [options] <blurhash>

Validating a BlurHash string

$ bh validate <blurhash>

Contributing

Go for it!

Credit

All credit goes to the BlurHash and sharp packages, I just smushed the two together into a CLI.

About

Simple CLI tool to encode images into BlurHashes, decode BlurHashes into images, and validate BlurHashes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published