A lightweight TypeScript wrapper for the BunnyCDN Storage API, version 1.1.0. Supports file listing, upload (from buffer or file path), download (as buffer or stream), and deletion across multiple storage regions. The library provides a simple class-based interface with automatic endpoint resolution. It ships TypeScript definitions and has no external dependencies. Release cadence is low, with infrequent updates. Unlike the official SDK, this package is community-maintained and offers a more streamlined API.
npm install bunnycdn-storageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a BunnyStorage client and performing list, upload, download, and delete operations.
Always pass undefined or a valid region string (e.g., 'ny', 'la', 'sg'). Do not pass empty string.
When uploading a file, use either a string path (absolute) or provide a buffer and filename.
Use 'buffer' or simply omit the second parameter to get a Buffer.
Use import BunnyStorage from 'bunnycdn-storage' (ESM) or const BunnyStorage = require('bunnycdn-storage').default (CJS)Verify API key and storage zone name, and ensure correct region is set (e.g., 'ny' for New York)
No dependency data recorded yet.