Simple utility functions for a better integration development for Astro. https://zokki.net
Go to file
2025-02-06 23:35:08 +01:00
.vscode v1.0.0 2024-04-07 22:13:49 +02:00
src feat: new function readFiles 2024-04-12 01:42:03 +02:00
.gitignore v1.0.0 2024-04-07 22:13:49 +02:00
.npmignore chore: added .prettierrc to .npmignore 2024-04-11 22:02:23 +02:00
.prettierrc enhance: padTo in reductionMessage is now possible to disable 2024-04-12 00:16:42 +02:00
LICENSE v1.0.0 2024-04-07 22:13:49 +02:00
package-lock.json 1.1.0 2024-04-12 01:56:32 +02:00
package.json 1.1.0 2024-04-12 01:56:32 +02:00
README.md chore: 'why'-section for README 2025-02-06 23:35:08 +01:00
tsconfig.json v1.0.0 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';