2024-04-07 22:13:49 +02:00
2024-04-12 01:42:03 +02:00
2024-04-07 22:13:49 +02:00
2024-04-07 22:13:49 +02:00
2024-04-12 01:56:32 +02:00
2024-04-12 01:56:32 +02:00
2025-02-06 23:35:08 +01:00
2024-04-07 22:13:49 +02:00

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';
Description
Simple utility functions for a better integration development for Astro.
https://zokki.net
Readme 141 KiB
Languages
TypeScript 100%