BC-LifeHash-CLI TypeScript Library - v1.0.0-alpha.20
    Preparing search index...

      BC-LifeHash-CLI TypeScript Library - v1.0.0-alpha.20

      @bcts/lifehash-cli - Command line tool for generating LifeHash PNG images.

      This package provides both a CLI tool and a programmatic API for generating LifeHash visual hash images as PNG files.

      # Generate a LifeHash from a string
      lifehash Hello

      # Generate with specific version and module size
      lifehash -v detailed -m 8 Hello

      # Generate with random input
      lifehash
      import { generateLifeHash } from "@bcts/lifehash-cli";
      import { writeFileSync } from "fs";

      // Generate a PNG buffer
      const pngBuffer = generateLifeHash("Hello", {
      version: "version2",
      moduleSize: 1,
      });

      // Write to file
      writeFileSync("Hello.png", pngBuffer);

      Enumerations

      Version

      Interfaces - CLI

      CliOptions

      Interfaces - Image Generation

      GenerateOptions

      Interfaces - Other

      Image

      Functions - CLI

      parseVersion
      run

      Functions - Image Generation

      generateLifeHash

      Functions - PNG Encoding

      writeImage
      generatePNG

      Functions - Utilities

      appendingPathComponent
      randomElement
      makeRandomInput

      Functions - Other

      makeFromUtf8