npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@unlimdev/bunnycdn-storage

v1.1.1

Published

BunnyCDN EDGE Storage API Client

Downloads

43

Readme

@unlimdev/bunnycdn-storage

BunnyCDN EDGE Storage API Client.

Building

npm ci
npm run build

Installation

npm install @unlimdev/bunnycdn-storage --save

Usage

To manage resources of StorageZone all request must be authorized. Module is able to read environment variables or use provided values

The necessary values are:

  • Storage Zone Name - the name of zone you created at dash.bunny.net
  • API Key - the password value from "FTP & API Access" of Storage Zone
  • Region - the code of the primary region configured for the StorageZone, e.g. ny, syd or empty for default region

Using Environment Variables

Module reads the following environment variables if no corresponding values provided:

  • BUNNY_CDN_STORAGE_ZONE - the name of the StorageZone to use
  • BUNNY_CDN_API_KEY - the API key (password) for authorization
  • BUNNY_CDN_REGION - primary region code for StorageZone
  • BUNNY_CDN_PREFIX - optional path to limit file operations

The list of codes for non-default regions listed here.

export BUNNY_CDN_STORAGE_ZONE="my-zone-name"
export BUNNY_CDN_API_KEY="read-write-key-password"
export BUNNY_CDN_REGION="ny" # if not set, defaults to Falkenstein (storage.bunnycdn.com)
export BUNNY_CDN_PREFIX="static"
const { BunnyCDNStorage } = require('@unlimdev/bunnycdn-storage')

const bunnyStorageClient = new BunnyCDNStorage()

Pass Values

const { BunnyCDNStorage } = require('@unlimdev/bunnycdn-storage')

// Specific region (ny.storage.bunnycdn.com), if not provided defaults to Falkenstein (storage.bunnycdn.com)
const bunnyStorageClient = new BunnyCDNStorage('my-storage-zone', 'password', 'ny')

Possible Operations

// list all files in zone / path
const files = await bunnyStorageClient.list();
const filesInDir = await bunnyStorageClient.list('/images');

// upload a file from buffer or filename
bunnyStorageClient.upload('/tmp/bunny.jpg');
bunnyStorageClient.upload(fs.readFileSync('/tmp/bunny.jpg'), 'bunny.jpg')

// download a file from the servers
bunnyStorageClient.download('bunny.jpg'); // Buffer (default)
bunnyStorageClient.download('bunny.jpg', 'arraybuffer'); // Buffer
bunnyStorageClient.download('bunny.jpg', 'stream'); // ReadableStream

// delete a file
bunnyStorageClient.delete('bunny.jpg');

Disclaimer

This repository is NOT official BunnyCDN package.

Official packages are listed here.