Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cloudflare-sync

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cloudflare-sync

CLI for uploading images to cloudflare.

  • 1.2.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

This is a CLI tool to synchronise a local directory with Cloudflare Images.

Features

  • Syncs an entire directory, rather that 1 file at a time.
  • Skips files already uploaded.
  • Uses the relative filepath as the image ID, so the final CDN URLs are predictable.
  • Optionally resizes images before uploading, which speeds up Cloudflare's dynamic image resizing.

Installation

npm install -g cloudflare-sync

Usage

Ensure you have a CLOUDFLARE_API_TOKEN environment variable set. Then use the CLI:

npx cloudflare-sync --source ./public --resize 2000x2000 --resizeFit outside --account c495ed7f42a6ac8cb22cc3b822a684cb --ext jpg,png

FAQs

Package last updated on 01 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc