integration-utils/README.md

788 B

This package provides utility functions to simplify integration development for Astro.

Why?

When developing Astro integrations, you often need to:

  • Format file sizes in a human-readable way and create appealing logging output about file size changes (e.g., when optimizing assets)
  • Read multiple files using glob patterns while having full control over encoding and content transformation
  • Handle these common tasks without adding multiple dependencies

This utility package provides these features in a simple, lightweight way that's specifically designed for integration development.

Installation

npm install @zokki/integration-utils

Usage

Import the utilities you need from the package:

import { formatBytes } from '@zokki/integration-utils';